mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.4384: Vim9: error message not tested, some code not tested
Problem: Vim9: error message not tested, some code not tested.
Solution: Add a couple of test cases. Give an error for a command modifier
without a command.
This commit is contained in:
@@ -1133,6 +1133,16 @@ def Test_useless_command_modifier()
|
||||
silent endtry
|
||||
END
|
||||
v9.CheckDefAndScriptFailure(lines, 'E1176:', 3)
|
||||
|
||||
lines =<< trim END
|
||||
leftabove
|
||||
END
|
||||
v9.CheckDefAndScriptFailure(lines, 'E1082:', 1)
|
||||
|
||||
lines =<< trim END
|
||||
leftabove # comment
|
||||
END
|
||||
v9.CheckDefAndScriptFailure(lines, 'E1082:', 1)
|
||||
enddef
|
||||
|
||||
def Test_eval_command()
|
||||
|
||||
Reference in New Issue
Block a user