update: 和可被K整除的子数组

This commit is contained in:
2020-05-27 06:40:13 +08:00
parent 596ae26ade
commit a69362984c
10 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import { isPalindrome } from '../../src/math/palindrome-number'
test('回文数', () => {
expect(isPalindrome(121)).toBe(true)
expect(isPalindrome(0)).toBe(true)
expect(isPalindrome(11)).toBe(true)
expect(isPalindrome(10)).toBe(false)
expect(isPalindrome(-121)).toBe(false)
})