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)
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim
index c354367..4e02de0 100644
--- a/src/testdir/test_expr.vim
+++ b/src/testdir/test_expr.vim
@@ -86,6 +86,21 @@
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
index 460b49b..b81b734 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1500,
+/**/
1499,
/**/
1498,