mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-08-17 21:28:02 +08:00
Fix tests.
This commit is contained in:
@@ -24,6 +24,7 @@ let g:delimitMate_autoclose = 1
|
|||||||
# Handle backspace gracefully.
|
# Handle backspace gracefully.
|
||||||
set backspace=
|
set backspace=
|
||||||
"(\<Esc>a\<BS>x" "(x)"
|
"(\<Esc>a\<BS>x" "(x)"
|
||||||
|
set bs=2
|
||||||
# closing parens removes characters. #133
|
# closing parens removes characters. #133
|
||||||
"(a\<Esc>i)" "()a)"
|
"(a\<Esc>i)" "()a)"
|
||||||
|
|
||||||
@@ -33,4 +34,4 @@ let b:delimitMate_eol_marker = ';'
|
|||||||
"abc(x" "abc(x);"
|
"abc(x" "abc(x);"
|
||||||
%d
|
%d
|
||||||
# BS should behave accordingly.
|
# BS should behave accordingly.
|
||||||
"abc(\<BS>" "abc"
|
"abc(\<BS>" "abc;"
|
||||||
|
|||||||
@@ -33,8 +33,9 @@ for item in lines
|
|||||||
exec 'normal i'.eval(input2)."\<Esc>"
|
exec 'normal i'.eval(input2)."\<Esc>"
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
let passed = line == eval(output2)
|
let passed = line == eval(output2)
|
||||||
call vimtap#Ok(passed, input2 . ' => ' . string(line) .
|
call vimtap#Is(line, eval(output2), input2)
|
||||||
\ (passed ? ' =' : ' !') . '= ' . string(eval(output2)))
|
", input2 . ' => ' . string(line) .
|
||||||
|
" \ (passed ? ' =' : ' !') . '= ' . string(eval(output2)))
|
||||||
let tcount += 1
|
let tcount += 1
|
||||||
endfor
|
endfor
|
||||||
endfor
|
endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user