mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 04:27:59 +08:00
11 lines
336 B
Plaintext
11 lines
336 B
Plaintext
Execute ( SpaceVim lua api: data.list ):
|
|
if !has('nvim-0.7.2')
|
|
Log 'skip lua test'
|
|
finish
|
|
endif
|
|
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'
|
|
|