add: 检查单词是否为句中其他单词的前缀

This commit is contained in:
yige committed 2020-05-24 12:34:13 +08:00
1 parent 4940ceaeb9
commit 5c5f35c535
3 files changed
+24 -1

No files matched your search

@@ -0,0 +1,5 @@
import { isPrefixOfWord } from '../../src/string/check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence'
test('检查单词是否为句中其他单词的前缀', () => {
expect(isPrefixOfWord('i love eating burger', 'burg')).toBe(4)
})