add: 只出现一次的数字等
This commit is contained in:
6
test/array/jump-game.test.js
Normal file
6
test/array/jump-game.test.js
Normal file
@ -0,0 +1,6 @@
|
||||
import { canJump } from '../../src/array/jump-game'
|
||||
|
||||
test('跳跃游戏', () => {
|
||||
expect(canJump([2, 3, 1, 1, 4])).toBe(true)
|
||||
expect(canJump([3, 2, 1, 0, 4])).toBe(false)
|
||||
})
|
Reference in New Issue
Block a user