diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-14 21:19:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-14 21:19:04 +0000 |
commit | bc510064027da8024d59460c9c816aea4ffac096 (patch) | |
tree | 5054f5b794010b839bfec74808b369a726709f57 /src/testdir/test_vim9_cmd.vim | |
parent | 7a3b802bab5add34baae37ec2c1ae7ad2f1693bd (diff) |
patch 8.2.4384: Vim9: error message not tested, some code not testedv8.2.4384
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.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 8325d7a808..f80d5a26d1 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -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() |