diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-13 14:00:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-13 14:00:45 +0100 |
commit | 4997f2a605e15261c4f825494324371f271ef6a8 (patch) | |
tree | cb74cc4914c7bf84073a5d48c5de2c87b1733ad3 /src/testdir | |
parent | 17822c507c03d509037c9ee5eee5cfbb201b3f01 (diff) | |
download | vim-git-4997f2a605e15261c4f825494324371f271ef6a8.tar.gz |
patch 9.0.0740: prop_add_list() gives multiple errors for invalid argumentv9.0.0740
Problem: prop_add_list() gives multiple errors for invalid argument.
Solution: Only give one error message.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_textprop.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim index 9cdd0da68..34c719d96 100644 --- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -383,6 +383,9 @@ func Test_prop_add_list() call assert_fails('call prop_add_list(test_null_dict(), [[2, 2, 2]])', 'E965:') call assert_fails('call prop_add_list(#{type: "one"}, test_null_list())', 'E1298:') call assert_fails('call prop_add_list(#{type: "one"}, [test_null_list()])', 'E714:') + + " only one error for multiple wrong values + call assert_fails('call prop_add_list(#{type: "one"}, [[{}, [], 0z00, 0.3]])', ['E728:', 'E728:']) call DeletePropTypes() bw! endfunc |