1
0
forked from aniani/vim

patch 8.2.1632: not checking the context of test_fails()

Problem:    Not checking the context of test_fails().
Solution:   Add the line number and context arguments.  Give error if
            assert_fails() argument types are wrong.
This commit is contained in:
Bram Moolenaar
2020-09-06 22:26:57 +02:00
parent 9bd5d879c2
commit 44d6652d56
6 changed files with 63 additions and 29 deletions

View File

@@ -524,7 +524,7 @@ enddef
def Test_error_in_nested_function()
# Error in called function requires unwinding the call stack.
assert_fails('FuncWithForwardCall()', 'E1096:', 1, 'FuncWithForwardCall')
assert_fails('FuncWithForwardCall()', 'E1096:', '', 1, 'FuncWithForwardCall')
enddef
def Test_return_type_wrong()