We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d7149c commit 53e3938Copy full SHA for 53e3938
Project-Euler/test/Problem004.test.js
@@ -0,0 +1,11 @@
1
+import { largestPalindromic } from '../Problem004.js'
2
+
3
+describe('Largest Palindromic Number', () => {
4
+ test('if digit is 2', () => {
5
+ expect(largestPalindromic(2)).toBe(9009)
6
+ })
7
+ // Project Euler Condition Check
8
+ test('if digit is 3', () => {
9
+ expect(largestPalindromic(3)).toBe(906609)
10
11
+})
0 commit comments