1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Describe Various edge-cases around balancing when preferring to close
Before each
call autopairs#Variables#InitVariables()
let g:AutoPairsPreferClose = 0
End
It should jump )(|) sanely
new | only!
call Expect(")()").ToMatch(")()")
End
It should close )(| sanely
new | only!
call Expect("()").ToMatch("()")
call Expect(")(").ToMatch(")()")
End
It should handle quotes properly
new | only!
call Expect(" \"foo").ToMatch(" \"foo\"")
call Expect(" \"foo\<esc>0i\"").ToMatch("\"\" \"foo\"")
End
End
|