1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Describe Complex use of maps
Before each
call autopairs#Variables#InitVariables()
End
It should ignore invalid keys
call autopairs#AutoPairsAddPair({"open": "<", "close": ">", "fuckin' key mate": "crash and burn"})
new | only!
call Expect("<").ToMatch("<>")
End
It should enable explicit expansion
call autopairs#AutoPairsAddPair({"open": "<", "close": ">", "mapclose": ']'})
new | only!
call Expect("<").ToMatch("<>")
call Expect('< ]').ToMatch("< >") " This test is a bit weird, but we basically have to force
" the thing to work. <] probably
" sends some random signal crap
call Expect("<\<Delete>]").ToMatch("<]")
%d
exec "normal i<"
exec "normal ^\<Right>i>"
call Expect('').CheckBuff("<>")
End
End
|