# HG changeset patch # User Bram Moolenaar # Date 1682865904 -7200 # Node ID a5c73a0f3d35b64514dcd06cc4cac302ede40d12 # Parent f3c9704e69cc98ff0b9aa02358aa81f3a0b3f322 patch 9.0.1500: The falsy operator is not tested properly Commit: https://github.com/vim/vim/commit/58a44751cec55be1ace0d4be5367dc19bc56be5d Author: zeertzjq Date: Sun Apr 30 15:29:56 2023 +0100 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 https://github.com/vim/vim/issues/12319) diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim --- a/src/testdir/test_expr.vim +++ b/src/testdir/test_expr.vim @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1500, +/**/ 1499, /**/ 1498,