From 58a44751cec55be1ace0d4be5367dc19bc56be5d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 30 Apr 2023 15:29:56 +0100 Subject: 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) --- src/testdir/test_expr.vim | 15 +++++++++++++++ src/version.c | 2 ++ 2 files changed, 17 insertions(+) (limited to 'src') diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index c3543676b..4e02de010 100644 --- 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 index 460b49b9e..b81b73497 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1500, /**/ 1499, /**/ -- cgit v1.2.1