aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_vimscript.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-13 21:31:00 +0800
committerGitHub <noreply@github.com>2022-08-13 21:31:00 +0800
commit02a4974418b7fb18c5034b7b2fc85ce4cde7d370 (patch)
treeba7855e0aa3708a3985a9235cdc290a6271d82c8 /src/nvim/testdir/test_vimscript.vim
parent33b49d5f55423a1a3174ad0ce42c4454871aa9f8 (diff)
downloadrneovim-02a4974418b7fb18c5034b7b2fc85ce4cde7d370.tar.gz
rneovim-02a4974418b7fb18c5034b7b2fc85ce4cde7d370.tar.bz2
rneovim-02a4974418b7fb18c5034b7b2fc85ce4cde7d370.zip
vim-patch:7.4.1168 (#19645)
Problem: This doesn't give the right result: eval(string(v:true)). (Nikolay Pavlov) Solution: Make the string "v:true" instead of "true". https://github.com/vim/vim/commit/f48aa160fdd7b8caa7678e1a2139244dd2bdc547
Diffstat (limited to 'src/nvim/testdir/test_vimscript.vim')
-rw-r--r--src/nvim/testdir/test_vimscript.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim
index de4629451b..d16783cf31 100644
--- a/src/nvim/testdir/test_vimscript.vim
+++ b/src/nvim/testdir/test_vimscript.vim
@@ -1165,10 +1165,10 @@ func Test_type()
" call assert_equal(0, 0 + v:none)
call assert_equal(0, 0 + v:null)
- call assert_equal('false', '' . v:false)
- call assert_equal('true', '' . v:true)
- " call assert_equal('none', '' . v:none)
- call assert_equal('null', '' . v:null)
+ call assert_equal('v:false', '' . v:false)
+ call assert_equal('v:true', '' . v:true)
+ " call assert_equal('v:none', '' . v:none)
+ call assert_equal('v:null', '' . v:null)
call assert_true(v:false == 0)
call assert_false(v:false != 0)