Fix tests.

This commit is contained in:
Israel Chauca Fuentes
2013-07-14 01:30:05 -04:00
parent 6b0d448f6a
commit ad11ab2210
2 changed files with 5 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ let g:delimitMate_autoclose = 1
# Handle backspace gracefully.
set backspace=
"(\<Esc>a\<BS>x" "(x)"
set bs=2
# closing parens removes characters. #133
"(a\<Esc>i)" "()a)"
@@ -33,4 +34,4 @@ let b:delimitMate_eol_marker = ';'
"abc(x" "abc(x);"
%d
# BS should behave accordingly.
"abc(\<BS>" "abc"
"abc(\<BS>" "abc;"

View File

@@ -33,8 +33,9 @@ for item in lines
exec 'normal i'.eval(input2)."\<Esc>"
let line = getline('.')
let passed = line == eval(output2)
call vimtap#Ok(passed, input2 . ' => ' . string(line) .
\ (passed ? ' =' : ' !') . '= ' . string(eval(output2)))
call vimtap#Is(line, eval(output2), input2)
", input2 . ' => ' . string(line) .
" \ (passed ? ' =' : ' !') . '= ' . string(eval(output2)))
let tcount += 1
endfor
endfor