We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isPalindrome
1 parent 296e4a5 commit 4f6cd6cCopy full SHA for 4f6cd6c
maths/test/is_palindrome.test.ts
@@ -1,7 +1,7 @@
1
import { isPalindrome } from "../is_palindrome";
2
3
describe("isPalindrome", () => {
4
- test.each([[5, true], [1234, false], [12321, true], [31343, false]])(
+ test.each([[0, true], [1, true], [5, true], [1234, false], [12321, true], [31343, false], [-1, false], [-11, false], [10, false]])(
5
"correct output for %i",
6
(nums, expected) => {
7
expect(isPalindrome(nums)).toBe(expected);
0 commit comments