Skip to content

Commit

Permalink
Finalize testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarWatcher committed Aug 28, 2021
1 parent 2fc9346 commit 6ad1fd4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/IgnoreTests.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,25 @@ Describe Ignoring insertions is some times desired.
exec "normal a "
call Expect("").CheckBuff("( )")
End
It shouldn't break enter
new | only!
call autopairs#AutoPairsInit()
call Expect("(").ToMatch("()")
call autopairs#AutoPairsIgnore()

exec "normal a\<CR>"
" Why does this need to be double-escaped?
call Expect("").CheckBuff("(\\n)")
End
It should try to handle disabling
" I really need to make it redundant to put these in every single
" test... TODO, fix your shit Livi
new | only!
call autopairs#AutoPairsInit()

call autopairs#AutoPairsToggle()
call Expect("(").ToMatch("(")
call Expect(b:autopairs_enabled).to_equal(0)
call Expect(b:AutoPairsIgnoreSingle).to_equal(0)
End
End

0 comments on commit 6ad1fd4

Please sign in to comment.