From 9b6b79f129cb31ba9fd1c7b8d38328fd73c74cee Mon Sep 17 00:00:00 2001 From: AndrewMamdouh <68063809+AndrewMamdouh@users.noreply.github.com> Date: Sat, 7 Sep 2024 00:57:26 +0300 Subject: [PATCH] test(hackerrank): add test cases for "Extra Long Factorials" --- .../Implementation/Extra Long Factorials/index.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/Problem Solving/Algorithms/Implementation/Extra Long Factorials/index.test.ts diff --git a/src/Problem Solving/Algorithms/Implementation/Extra Long Factorials/index.test.ts b/src/Problem Solving/Algorithms/Implementation/Extra Long Factorials/index.test.ts new file mode 100644 index 0000000..3a7fdd5 --- /dev/null +++ b/src/Problem Solving/Algorithms/Implementation/Extra Long Factorials/index.test.ts @@ -0,0 +1,7 @@ +import { extraLongFactorials } from '@ProblemSolving/Algorithms/Implementation'; + +describe('Problem Solving » Algorithms » Implementation » Extra Long Factorials', () => { + it('should return the factorial', () => { + expect(extraLongFactorials(25)).toBe('15511210043330985984000000'); + }); +});