From 267db7c3e32e1b55726e72966c75e8549621f9d6 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 2 Dec 2022 21:37:45 +0000 Subject: [PATCH] patch 9.0.0994: tests for empty prop type name fail Problem: Tests for empty prop type name fail. Solution: Correct the error number. --- src/testdir/test_vim9_builtin.vim | 4 ++-- 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', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_delete({"a": 10}, "b")'], ['E1013: Argument 1: type mismatch, expected string but got dict', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_delete("a", "b")'], ['E1013: Argument 2: type mismatch, expected dict 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', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_get({"a": 10}, "b")'], ['E1013: Argument 1: type mismatch, expected string but got dict', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['prop_type_get("a", "b")'], ['E1013: Argument 2: type mismatch, expected dict 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 @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 994, /**/ 993, /**/ -- 2.40.0