diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-03-05 19:27:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-05 19:27:49 +0000 |
commit | c142d6513e8d71a8f26c5ca1cb00b7b3de9b15e6 (patch) | |
tree | c0774f9c19dea11b9269e5df00aa88e20344ea8a | |
parent | d8742476d11e75e3b733f21d9aeac1cbd2a02c6f (diff) |
patch 9.0.1382: failing test for strptime() doesn't show returned valuev9.0.1382
Problem: Failing test for strptime() doesn't show returned value.
Solution: Use assert_equal() instead of assert_true().
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 1e2b37857f..b8500c5e61 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -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 diff --git a/src/version.c b/src/version.c index 19ea3e4a02..8533a0815d 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1382, +/**/ 1381, /**/ 1380, |