Patch 9.0.1382
Problem: Failing test for strptime() doesn't show returned value.
Solution: Use assert_equal() instead of assert_true().
Files: src/testdir/test_vim9_builtin.vim
*** ../vim-9.0.1381/src/testdir/test_vim9_builtin.vim 2023-01-15
18:17:08.789655225 +0000
--- src/testdir/test_vim9_builtin.vim 2023-03-05 19:24:52.046648628 +0000
***************
*** 4286,4293 ****
if exists_compiled('*strptime')
v9.CheckDefAndScriptFailure(['strptime(10, "2021")'], ['E1013: Argument
1: type mismatch, expected string but got number', 'E1174: String required for
argument 1'])
v9.CheckDefAndScriptFailure(['strptime("%Y", 2021)'], ['E1013: Argument
2: type mismatch, expected string but got number', 'E1174: String required for
argument 2'])
! assert_true(strptime('%Y', '2021') != 0)
! assert_true(strptime('%Y', '') == 0)
endif
enddef
--- 4286,4293 ----
if exists_compiled('*strptime')
v9.CheckDefAndScriptFailure(['strptime(10, "2021")'], ['E1013: Argument
1: type mismatch, expected string but got number', 'E1174: String required for
argument 1'])
v9.CheckDefAndScriptFailure(['strptime("%Y", 2021)'], ['E1013: Argument
2: type mismatch, expected string but got number', 'E1174: String required for
argument 2'])
! assert_notequal(0, strptime('%Y', '2021'))
! assert_equal(0, strptime('%Y', ''))
endif
enddef
*** ../vim-9.0.1381/src/version.c 2023-03-05 13:12:28.492767233 +0000
--- src/version.c 2023-03-05 19:24:16.258573356 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1382,
/**/
--
hundred-and-one symptoms of being an internet addict:
204. You have learned not to fall asleep on your keyboard
the hard way
/// 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/20230305192814.356F01C042C%40moolenaar.net.