1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 04:27:59 +08:00
SpaceVim/test/lua/api/data/dict.vader

10 lines
343 B
Plaintext
Raw Normal View History

2022-06-20 10:50:35 +08:00
Execute ( SpaceVim lua api: data.dict ):
2024-03-22 20:15:00 +08:00
if !has('nvim-0.7.2')
Log 'skip lua test'
2024-03-22 20:15:00 +08:00
finish
2022-06-20 10:50:35 +08:00
endif
2024-03-22 20:15:00 +08:00
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'}
2022-06-20 10:50:35 +08:00