Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f6cd6c

Browse files
authored
tests: add missing tests ofisPalindrome (#227)
1 parent296e4a5 commit4f6cd6c

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)

[8]ページ先頭

©2009-2025 Movatter.jp