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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230430143108.67CD51C0BF5%40moolenaar.net.

Raspunde prin e-mail lui