1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/test/api/vim/command.vader
2017-10-17 23:23:07 +08:00

11 lines
349 B
Plaintext

Execute ( SpaceVim api: data#command complete):
let cmd = SpaceVim#api#import('vim#command')
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"