mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.1500: The falsy operator is not tested properly
Problem: The falsy operator is not tested properly. Solution: Add a few more test cases. (closes #12319)
This commit is contained in:
parent
caf642c25d
commit
58a44751ce
@ -86,6 +86,21 @@ func Test_op_falsy()
|
||||
call assert_equal(456, [] ?? 456)
|
||||
call assert_equal(456, {} ?? 456)
|
||||
call assert_equal(456, 0.0 ?? 456)
|
||||
|
||||
call assert_equal(456, v:null ?? 456)
|
||||
call assert_equal(456, v:none ?? 456)
|
||||
call assert_equal(456, test_null_string() ?? 456)
|
||||
call assert_equal(456, test_null_blob() ?? 456)
|
||||
call assert_equal(456, test_null_list() ?? 456)
|
||||
call assert_equal(456, test_null_dict() ?? 456)
|
||||
call assert_equal(456, test_null_function() ?? 456)
|
||||
call assert_equal(456, test_null_partial() ?? 456)
|
||||
if has('job')
|
||||
call assert_equal(456, test_null_job() ?? 456)
|
||||
endif
|
||||
if has('channel')
|
||||
call assert_equal(456, test_null_channel() ?? 456)
|
||||
endif
|
||||
END
|
||||
call v9.CheckLegacyAndVim9Success(lines)
|
||||
endfunc
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1500,
|
||||
/**/
|
||||
1499,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user