call assert_fails('call strptime()', 'E119:')
call assert_fails('call strptime("xxx")', 'E119:')
- " This fails on BSD 14 and returns
+ " This fails on BSD 14 and returns
" -2209078800 instead of 0
call assert_equal(0, strptime("%Y", ''))
call assert_equal(0, strptime("%Y", "xxx"))
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'))
- # This fails on BSD 14 and returns
+ # This fails on BSD 14 and returns
# -2209078800 instead of 0
assert_equal(0, strptime('%Y', ''))
endif