File: ComplexTests.vimspec

package info (click to toggle)
vim-autopairs 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: makefile: 4
file content (23 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (2)
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