diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 13:15:16 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 13:17:20 +0800 |
commit | 3d80392cab8ba41757769e18ffde9e8258365472 (patch) | |
tree | d39d4e007d9b408e90a5eed6dfcd58daf75f0552 | |
parent | 4c276bbd1887c09350fca4bdb355a2afde3ef471 (diff) | |
download | rneovim-3d80392cab8ba41757769e18ffde9e8258365472.tar.gz rneovim-3d80392cab8ba41757769e18ffde9e8258365472.tar.bz2 rneovim-3d80392cab8ba41757769e18ffde9e8258365472.zip |
vim-patch:8.2.0104: using channel or job with ":execute" has strange effects
Problem: Using channel or job with ":execute" has strange effects.
Solution: Give an error message for Job and Channel.
https://github.com/vim/vim/commit/b662591e505e8523634a1c8ddfb7fe44fae880c6
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | test/old/testdir/test_eval_stuff.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim index 46482c34a1..1cf039342d 100644 --- a/test/old/testdir/test_eval_stuff.vim +++ b/test/old/testdir/test_eval_stuff.vim @@ -205,6 +205,19 @@ func Test_vvar_scriptversion1() call assert_equal(511, 0o777) endfunc +func Test_excute_null() + call assert_fails('execute v:_null_list', 'E730:') + call assert_fails('execute v:_null_dict', 'E731:') + call assert_fails('execute v:_null_blob', 'E976:') + execute v:_null_string + " Nvim doesn't have null partials + " call assert_fails('execute test_null_partial()', 'E729:') + if has('job') + call assert_fails('execute test_null_job()', 'E908:') + call assert_fails('execute test_null_channel()', 'E908:') + endif +endfunc + func Test_number_max_min_size() " This will fail on systems without 64 bit number support or when not " configured correctly. |