add: 最后一个单词的长度
This commit is contained in:
5
test/string/length-of-last-word.test.js
Normal file
5
test/string/length-of-last-word.test.js
Normal file
@ -0,0 +1,5 @@
|
||||
import { lengthOfLastWord } from '../../src/string/length-of-last-word'
|
||||
|
||||
test('最后一个单词的长度', () => {
|
||||
expect(lengthOfLastWord('b a ')).toBe(1)
|
||||
})
|
Reference in New Issue
Block a user