1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 15:20:06 +08:00
SpaceVim/test/api/data/chinese_str.vader

11 lines
318 B
Plaintext
Raw Normal View History

Execute ( SpaceVim api: data#string ):
if !has('patch-8.2.3395')
finish
endif
let str = SpaceVim#api#import('data#string')
AssertEqual str.string2chars('你好'), ['你', '好']
Log 'test strQ2B()'
AssertEqual str.strQ2B(''), '%'
Log 'test strB2Q()'
AssertEqual str.strB2Q('%'), ''