]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0994: tests for empty prop type name fail v9.0.0994
authorBram Moolenaar <Bram@vim.org>
Fri, 2 Dec 2022 21:37:45 +0000 (21:37 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 2 Dec 2022 21:37:45 +0000 (21:37 +0000)
Problem:    Tests for empty prop type name fail.
Solution:   Correct the error number.

src/testdir/test_vim9_builtin.vim
src/version.c

index d85d064df08e1e469b0f1237cb69d9a206c3e8b7..d0f49dd35b8d8ec9cfd62b915dfe84409b1def49 100644 (file)
@@ -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()
index 9fbed7c3f9b15e39114cce9883310651e180fa2c..6b4f1035b3abd9aeb0dbcf452081df58de1775bb 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    994,
 /**/
     993,
 /**/