1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 06:40:05 +08:00
SpaceVim/test/api/data/chinese_str.vader
Eric Wong f5c6730177 fix(string): fix string2chars function test for vim
skip chinese test for old vim
2024-03-23 20:40:17 +08:00

11 lines
318 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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('%'), ''