mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
patch 9.0.1382: failing test for strptime() doesn't show returned value
Problem: Failing test for strptime() doesn't show returned value. Solution: Use assert_equal() instead of assert_true().
This commit is contained in:
parent
d8742476d1
commit
c142d6513e
@ -4286,8 +4286,8 @@ def Test_strptime()
|
||||
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)
|
||||
assert_notequal(0, strptime('%Y', '2021'))
|
||||
assert_equal(0, strptime('%Y', ''))
|
||||
endif
|
||||
enddef
|
||||
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1382,
|
||||
/**/
|
||||
1381,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user