diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-07 05:34:20 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-07 05:34:20 +0800 |
commit | bf8f2ebb79d4c16dae0268ef26bdbc032069000d (patch) | |
tree | b8b04e6e606e66344fa7801746a0158fffb72d8e /src | |
parent | b3a14a71b095f9ad2abffbc9b61ae574907f2c21 (diff) | |
download | rneovim-bf8f2ebb79d4c16dae0268ef26bdbc032069000d.tar.gz rneovim-bf8f2ebb79d4c16dae0268ef26bdbc032069000d.tar.bz2 rneovim-bf8f2ebb79d4c16dae0268ef26bdbc032069000d.zip |
vim-patch:7.4.1173
Problem: No test for new behavior of v:true et al.
Solution: Add a test.
https://github.com/vim/vim/commit/65591001e405cbaaf9772c9375d0bb6049cf9a3a
Comment out tests involving v:none as Nvim has removed it.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_vimscript.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim index 674a28f154..4088aa33dc 100644 --- a/src/nvim/testdir/test_vimscript.vim +++ b/src/nvim/testdir/test_vimscript.vim @@ -1202,6 +1202,11 @@ func Test_type() " call assert_true(v:none isnot 0) call assert_true(v:null isnot 0) " call assert_true(v:null isnot v:none) + + call assert_equal(v:false, eval(string(v:false))) + call assert_equal(v:true, eval(string(v:true))) + " call assert_equal(v:none, eval(string(v:none))) + call assert_equal(v:null, eval(string(v:null))) endfunc "------------------------------------------------------------------------------- |