mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:50:04 +08:00
10 lines
284 B
Plaintext
10 lines
284 B
Plaintext
Execute ( SpaceVim lua api: data#string ):
|
|
if $SPACEVIM_LUA != 1
|
|
finish
|
|
endif
|
|
let cmp = SpaceVim#api#import('vim#compatible')
|
|
Log 'test trim()'
|
|
lua sp_str = require('spacevim.api').import('data.string')
|
|
AssertEqual cmp.luaeval("sp_str.trim(' s b ')"), 's b'
|
|
|