Mercurial > vim
changeset 31321:b0865d5f8109 v9.0.0994
patch 9.0.0994: tests for empty prop type name fail
Commit: https://github.com/vim/vim/commit/267db7c3e32e1b55726e72966c75e8549621f9d6
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 2 21:37:45 2022 +0000
patch 9.0.0994: tests for empty prop type name fail
Problem: Tests for empty prop type name fail.
Solution: Correct the error number.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 02 Dec 2022 22:45:04 +0100 |
parents | 6bba507a9edb |
children | 82dc4bbe0d7a |
files | src/testdir/test_vim9_builtin.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()