Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (35 sloc) 712 Bytes
#!/bin/bash
./t/check-vspec-result <(cat <<'END'
describe 'Suite 1'
it 'should be executed'
end
end
describe 'Suite 2'
it 'should be executed and fail'
function A()
call B()
endfunction
function B()
call C()
endfunction
function C()
ThisLineIsNotAValidVimScriptStatement
endfunction
call A()
end
end
describe 'Suite 3'
it 'should be executed'
end
end
END
) <(cat <<'END'
ok 1 - Suite 1 should be executed
not ok 2 - Suite 2 should be executed and fail
# function <SNR>1_main..vspec#test..6..A..B..C, line 1
# Vim:E492: Not an editor command: ThisLineIsNotAValidVimScriptStatement
ok 3 - Suite 3 should be executed
1..3
END
)
# vim: filetype=sh