add: 最后一个单词的长度

This commit is contained in:
2020-05-10 18:05:18 +08:00
parent 8a69d1cfb0
commit 6036e99c52
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,5 @@
import { lengthOfLastWord } from '../../src/string/length-of-last-word'
test('最后一个单词的长度', () => {
expect(lengthOfLastWord('b a ')).toBe(1)
})