7 lines
200 B
JavaScript
7 lines
200 B
JavaScript
|
import { isUnique } from '../../src/string/unique-characters'
|
||
|
|
||
|
test('判断字符串是否没有重复字符', () => {
|
||
|
expect(isUnique('abc___')).toBe(false)
|
||
|
expect(isUnique('abc')).toBe(true)
|
||
|
})
|