diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 14:11:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 14:11:10 +0800 |
commit | 1ca77c222b00215657bae416eba5d280a1d9dc29 (patch) | |
tree | 2d203ebcd6609c1db6c61cde4d43fccb7424f341 /test/old/testdir/test_eval_stuff.vim | |
parent | c2e47e7bec0394a2cc12c8f83e3e5950ad99d1b4 (diff) | |
parent | 85741677c86f7686e3597a310f8059608e7816fb (diff) | |
download | rneovim-1ca77c222b00215657bae416eba5d280a1d9dc29.tar.gz rneovim-1ca77c222b00215657bae416eba5d280a1d9dc29.tar.bz2 rneovim-1ca77c222b00215657bae416eba5d280a1d9dc29.zip |
Merge pull request #23097 from zeertzjq/vim-8.2.0101
vim-patch:8.2.{0101,0102,0103,0104,0633,0634}: null typval tests
Diffstat (limited to 'test/old/testdir/test_eval_stuff.vim')
-rw-r--r-- | test/old/testdir/test_eval_stuff.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim index 46482c34a1..90e3942c4d 100644 --- a/test/old/testdir/test_eval_stuff.vim +++ b/test/old/testdir/test_eval_stuff.vim @@ -39,6 +39,9 @@ func Test_mkdir_p() call assert_fails('call mkdir("Xfile", "p")', 'E739') call delete('Xfile') call delete('Xmkdir', 'rf') + call assert_equal(0, mkdir(v:_null_string)) + call assert_fails('call mkdir([])', 'E730') + call assert_fails('call mkdir("abc", [], [])', 'E745') endfunc func Test_line_continuation() @@ -205,6 +208,21 @@ func Test_vvar_scriptversion1() call assert_equal(511, 0o777) endfunc +func Test_execute_cmd_with_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:') + " Nvim doesn't have test_unknown() + " call assert_fails('execute test_unknown()', 'E908:') + 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. |