diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-02 21:37:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-02 21:37:45 +0000 |
commit | 267db7c3e32e1b55726e72966c75e8549621f9d6 (patch) | |
tree | 8616e7e2df5ef748297f4162dcb52e143f8da5ef | |
parent | 89469d157aea01513bde826b4519dd6b5fbceae4 (diff) | |
download | vim-git-267db7c3e32e1b55726e72966c75e8549621f9d6.tar.gz |
patch 9.0.0994: tests for empty prop type name failv9.0.0994
Problem: Tests for empty prop type name fail.
Solution: Correct the error number.
-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 d85d064df..d0f49dd35 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -3171,14 +3171,14 @@ def Test_prop_type_delete() v9.CheckDefAndScriptFailure(['prop_type_delete({"a": 10})'], ['E1013: Argument 1: type mismatch, expected string but got dict<number>', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_delete({"a": 10}, "b")'], ['E1013: Argument 1: type mismatch, expected string but got dict<number>', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_delete("a", "b")'], ['E1013: Argument 2: type mismatch, expected dict<any> but got string', 'E1206: Dictionary required for argument 2']) - assert_fails("prop_type_delete('')", 'E474:') + assert_fails("prop_type_delete('')", 'E475:') enddef def Test_prop_type_get() v9.CheckDefAndScriptFailure(['prop_type_get({"a": 10})'], ['E1013: Argument 1: type mismatch, expected string but got dict<number>', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_get({"a": 10}, "b")'], ['E1013: Argument 1: type mismatch, expected string but got dict<number>', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_get("a", "b")'], ['E1013: Argument 2: type mismatch, expected dict<any> but got string', 'E1206: Dictionary required for argument 2']) - assert_fails("prop_type_get('')", 'E474:') + assert_fails("prop_type_get('')", 'E475:') enddef def Test_prop_type_list() diff --git a/src/version.c b/src/version.c index 9fbed7c3f..6b4f1035b 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 */ /**/ + 994, +/**/ 993, /**/ 992, |