1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 22:40:05 +08:00
SpaceVim/test/api/vim/command.vader

11 lines
349 B
Plaintext
Raw Normal View History

2017-10-17 23:23:07 +08:00
Execute ( SpaceVim api: data#command complete):
2017-10-17 15:37:29 +08:00
let cmd = SpaceVim#api#import('vim#command')
2017-10-17 23:23:07 +08:00
let cmd.options = {
\ '-d' : {
\ 'complete' : ['foo', 'baa'],
\ }
\ }
AssertEqual cmd.complete('', 'A ', 3), '-d'
AssertEqual cmd.complete('', 'A -d ', 6), "foo\nbaa"
AssertEqual cmd.complete('f', 'A -d f', 7), "foo\nbaa"