From eee4e866b8db5af574aea8ce4609b723fe6133b3 Mon Sep 17 00:00:00 2001 From: AndrewMamdouh <68063809+AndrewMamdouh@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:05:41 +0300 Subject: [PATCH] test(hackerrank): add test cases for Modified Kaprekar Numbers --- .../Implementation/Modified Kaprekar Numbers/index.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/Problem Solving/Algorithms/Implementation/Modified Kaprekar Numbers/index.test.ts diff --git a/src/Problem Solving/Algorithms/Implementation/Modified Kaprekar Numbers/index.test.ts b/src/Problem Solving/Algorithms/Implementation/Modified Kaprekar Numbers/index.test.ts new file mode 100644 index 0000000..c0ac3b8 --- /dev/null +++ b/src/Problem Solving/Algorithms/Implementation/Modified Kaprekar Numbers/index.test.ts @@ -0,0 +1,7 @@ +import { kaprekarNumbers } from '@ProblemSolving/Algorithms/Implementation'; + +describe('Problem Solving » Algorithms » Implementation » Modified Kaprekar Numbers', () => { + it('should return the modified Kaprekar numbers', () => { + expect(kaprekarNumbers(1, 100)).toBe('1 9 45 55 99'); + }); +});