diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-17 12:45:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-17 12:45:15 +0100 |
commit | 0d03263fd731986c0eee1a08e0f1b19f1bc3a7ad (patch) | |
tree | 7777e5301a42e533fc3c51af7ea541816fb29985 /src/testdir/test_vim9_cmd.vim | |
parent | 7ce5b2b590256ce53d6af28c1d203fb3bc1d2d97 (diff) |
patch 8.2.4970: "eval 123" gives an error, "eval 'abc'" does notv8.2.4970
Problem: "eval 123" gives an error, "eval 'abc'" does not.
Solution: Also give an error when evaluating only a string. (closes #10434)
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 50719e1b54..77e1d8a069 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -697,6 +697,16 @@ def Test_use_register() END v9.CheckDefAndScriptFailure(lines, 'E1207:', 2) $SomeEnv = '' + + lines =<< trim END + eval 'value' + END + v9.CheckDefAndScriptFailure(lines, 'E1207:', 1) + + lines =<< trim END + eval "value" + END + v9.CheckDefAndScriptFailure(lines, 'E1207:', 1) enddef def Test_environment_use_linebreak() |