Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 22165:c512e6f57ff2 v8.2.1632
patch 8.2.1632: not checking the context of test_fails()
Commit: https://github.com/vim/vim/commit/44d6652d561d628d12e3ff7f6636ea7d1f805ced
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 6 22:26:57 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Sep 2020 22:30:03 +0200 |
parents | b6d36f0b4f03 |
children | efa1511a5bf3 |
comparison
equal
deleted
inserted
replaced
22164:7b7500b8b68e | 22165:c512e6f57ff2 |
---|---|
522 return arg | 522 return arg |
523 enddef | 523 enddef |
524 | 524 |
525 def Test_error_in_nested_function() | 525 def Test_error_in_nested_function() |
526 # Error in called function requires unwinding the call stack. | 526 # Error in called function requires unwinding the call stack. |
527 assert_fails('FuncWithForwardCall()', 'E1096:', 1, 'FuncWithForwardCall') | 527 assert_fails('FuncWithForwardCall()', 'E1096:', '', 1, 'FuncWithForwardCall') |
528 enddef | 528 enddef |
529 | 529 |
530 def Test_return_type_wrong() | 530 def Test_return_type_wrong() |
531 CheckScriptFailure([ | 531 CheckScriptFailure([ |
532 'def Func(): number', | 532 'def Func(): number', |