1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:30:04 +08:00
SpaceVim/test/lua/api/data/list.vader

9 lines
321 B
Plaintext
Raw Normal View History

Execute ( SpaceVim lua api: data.list ):
if get(g:, 'spacevim_use_lua', 0)
let cmp = SpaceVim#api#import('vim#compatible')
lua spacevim_list = require('spacevim.api').import('data.list')
lua context = {"java", "hello world"}
AssertEqual cmp.luaeval('spacevim_list.pop(context)'), 'hello world'
endif