Patch 9.0.0994 (after 9.0.0993)
Problem:    Tests for empty prop type name fail.
Solution:   Correct the error number.
Files:      src/testdir/test_vim9_builtin.vim


*** ../vim-9.0.0993/src/testdir/test_vim9_builtin.vim   2022-12-02 
20:46:01.940019452 +0000
--- src/testdir/test_vim9_builtin.vim   2022-12-02 21:36:00.120967086 +0000
***************
*** 3171,3184 ****
    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:')
  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:')
  enddef
  
  def Test_prop_type_list()
--- 3171,3184 ----
    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('')", '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('')", 'E475:')
  enddef
  
  def Test_prop_type_list()
*** ../vim-9.0.0993/src/version.c       2022-12-02 20:46:01.940019452 +0000
--- src/version.c       2022-12-02 21:21:55.505848031 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     994,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
213. Your kids start referring to you as "that guy in front of the monitor."

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221202213815.6FB1A1C5967%40moolenaar.net.

Raspunde prin e-mail lui