comparison src/testdir/test_vimscript.vim @ 28008:cc7d54a134e4 v8.2.4529

patch 8.2.4529: Vim9: comparing partial with function fails Commit: https://github.com/vim/vim/commit/ed0c62e7b16b62655824df28cdd6bd75aadbb8fc Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 8 19:43:55 2022 +0000 patch 8.2.4529: Vim9: comparing partial with function fails Problem: Vim9: comparing partial with function fails. Solution: Support this comparison. Avoid a crash. (closes https://github.com/vim/vim/issues/9909) Add more test cases.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Mar 2022 20:45:03 +0100
parents ca7a207d83cd
children b4c111ea83b1
comparison
equal deleted inserted replaced
28007:e11bea0167bb 28008:cc7d54a134e4
6569 6569
6570 call assert_false(v:false is 0) 6570 call assert_false(v:false is 0)
6571 call assert_false(v:true is 1) 6571 call assert_false(v:true is 1)
6572 call assert_false(v:true is v:false) 6572 call assert_false(v:true is v:false)
6573 call assert_false(v:none is 0) 6573 call assert_false(v:none is 0)
6574 call assert_false(v:none is [])
6575 call assert_false(v:none is {})
6576 call assert_false(v:none is 'text')
6574 call assert_false(v:null is 0) 6577 call assert_false(v:null is 0)
6575 call assert_false(v:null is v:none) 6578 call assert_false(v:null is v:none)
6576 6579
6577 call assert_true(v:false isnot 0) 6580 call assert_true(v:false isnot 0)
6578 call assert_true(v:true isnot 1) 6581 call assert_true(v:true isnot 1)