add: 只出现一次的数字等
This commit is contained in:
5
test/array/sort-array-by-parity.test.js
Normal file
5
test/array/sort-array-by-parity.test.js
Normal file
@ -0,0 +1,5 @@
|
||||
import sortArrayByParity from '../../src/array/sort-array-by-parity'
|
||||
|
||||
test('sortArrayByParity', () => {
|
||||
expect(sortArrayByParity([4, 2, 5, 7])).toEqual([2, 5, 4, 7])
|
||||
})
|
Reference in New Issue
Block a user