1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 00:28:00 +08:00
SpaceVim/test/lua/api/data/dict.vader
2024-03-22 20:15:00 +08:00

10 lines
343 B
Plaintext

Execute ( SpaceVim lua api: data.dict ):
if !has('nvim-0.7.2')
Log 'skip lua test'
finish
endif
let cmp = SpaceVim#api#import('vim#compatible')
lua spacevim_dict = require('spacevim.api').import('data.dict')
AssertEqual cmp.luaeval('spacevim_dict.make({"a" , "b", "h"}, {"c", "d"}, "m")'), {'a' : 'c', 'b' : 'd', 'h' : 'm'}