To: vim_dev@googlegroups.com Subject: Patch 9.0.1500 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1500 Problem: The falsy operator is not tested properly. Solution: Add a few more test cases. (closes #12319) Files: src/testdir/test_expr.vim *** ../vim-9.0.1499/src/testdir/test_expr.vim 2023-04-27 16:24:03.592501355 +0100 --- src/testdir/test_expr.vim 2023-04-30 15:27:58.673122362 +0100 *************** *** 86,91 **** --- 86,106 ---- 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 *** ../vim-9.0.1499/src/version.c 2023-04-29 21:38:00.567105309 +0100 --- src/version.c 2023-04-30 15:29:24.881136103 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1500, /**/ -- Westheimer's Discovery: A couple of months in the laboratory can frequently save a couple of hours in the library. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///