add: 只出现一次的数字等
This commit is contained in:
6
test/string/unique-characters.test.js
Normal file
6
test/string/unique-characters.test.js
Normal file
@ -0,0 +1,6 @@
|
||||
import { isUnique } from '../../src/string/unique-characters'
|
||||
|
||||
test('判断字符串是否没有重复字符', () => {
|
||||
expect(isUnique('abc___')).toBe(false)
|
||||
expect(isUnique('abc')).toBe(true)
|
||||
})
|
Reference in New Issue
Block a user