Skip to content

Commit 4f6cd6c

Browse files
authored
tests: add missing tests of isPalindrome (#227)
1 parent 296e4a5 commit 4f6cd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/test/is_palindrome.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isPalindrome } from "../is_palindrome";
22

33
describe("isPalindrome", () => {
4-
test.each([[5, true], [1234, false], [12321, true], [31343, false]])(
4+
test.each([[0, true], [1, true], [5, true], [1234, false], [12321, true], [31343, false], [-1, false], [-11, false], [10, false]])(
55
"correct output for %i",
66
(nums, expected) => {
77
expect(isPalindrome(nums)).toBe(expected);

0 commit comments

Comments
 (0)