Skip to content

Commit

Permalink
test(hackerrank): add test cases for Modified Kaprekar Numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMamdouh committed Sep 5, 2024
1 parent d5c7e98 commit eee4e86
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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');
});
});

0 comments on commit eee4e86

Please sign in to comment.