diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-14 18:31:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-14 18:31:27 +0100 |
commit | 025cb1ca8605055383c53bf2c823d7093cf29b82 (patch) | |
tree | 27c018ac06cf62ea312c371400a7d41cf366ba13 /src/testdir/test_vim9_cmd.vim | |
parent | ec792290eb902e01c9edfc0cb71e5235833df56a (diff) |
patch 8.2.2144: Vim9: some corner cases not testedv8.2.2144
Problem: Vim9: some corner cases not tested.
Solution: Add a few tests.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 1986c0f71e..95d696913d 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -20,6 +20,9 @@ def Test_edit_wildcards() edit X`=filename`xx`=filenr`yy assert_equal('XXtestxx77yy', bufname()) + + CheckDefFailure(['edit `=xxx`'], 'E1001:') + CheckDefFailure(['edit `="foo"'], 'E1083:') enddef def Test_hardcopy_wildcards() @@ -626,6 +629,20 @@ def Test_put_command() assert_equal('aaa', getline(4)) bwipe! + + CheckDefFailure(['put =xxx'], 'E1001:') +enddef + +def Test_put_with_linebreak() + new + var lines =<< trim END + vim9script + pu =split('abc', '\zs') + ->join() + END + CheckScriptSuccess(lines) + getline(2)->assert_equal('a b c') + bwipe! enddef def Test_command_star_range() |