Mercurial > vim
comparison src/testdir/test_textprop.vim @ 30015:adb0de8be4ce v9.0.0345
patch 9.0.0345: error message for list argument could be clearer
Commit: https://github.com/vim/vim/commit/d83392a43a48c566c0f3b76382a3648584dae32b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 12:22:46 2022 +0100
patch 9.0.0345: error message for list argument could be clearer
Problem: Error message for list argument could be clearer.
Solution: Include the argument number. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/11027)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Sep 2022 13:30:05 +0200 |
parents | 86eb4aba16c3 |
children | 4b9b237d1211 |
comparison
equal
deleted
inserted
replaced
30014:3fb163e2ef6c | 30015:adb0de8be4ce |
---|---|
379 call assert_fails('call prop_add_list(#{type: "one"}, [[1, 1, 1, 2], [4, 1, 5, 2]])', 'E966:') | 379 call assert_fails('call prop_add_list(#{type: "one"}, [[1, 1, 1, 2], [4, 1, 5, 2]])', 'E966:') |
380 call assert_fails('call prop_add_list(#{type: "one"}, [[3, 1, 1, 2]])', 'E966:') | 380 call assert_fails('call prop_add_list(#{type: "one"}, [[3, 1, 1, 2]])', 'E966:') |
381 call assert_fails('call prop_add_list(#{type: "one"}, [[2, 2, 2, 2], [3, 20, 3, 22]])', 'E964:') | 381 call assert_fails('call prop_add_list(#{type: "one"}, [[2, 2, 2, 2], [3, 20, 3, 22]])', 'E964:') |
382 call assert_fails('eval #{type: "one"}->prop_add_list([[2, 2, 2, 2], [3, 20, 3, 22]])', 'E964:') | 382 call assert_fails('eval #{type: "one"}->prop_add_list([[2, 2, 2, 2], [3, 20, 3, 22]])', 'E964:') |
383 call assert_fails('call prop_add_list(test_null_dict(), [[2, 2, 2]])', 'E965:') | 383 call assert_fails('call prop_add_list(test_null_dict(), [[2, 2, 2]])', 'E965:') |
384 call assert_fails('call prop_add_list(#{type: "one"}, test_null_list())', 'E714:') | 384 call assert_fails('call prop_add_list(#{type: "one"}, test_null_list())', 'E1298:') |
385 call assert_fails('call prop_add_list(#{type: "one"}, [test_null_list()])', 'E714:') | 385 call assert_fails('call prop_add_list(#{type: "one"}, [test_null_list()])', 'E714:') |
386 call DeletePropTypes() | 386 call DeletePropTypes() |
387 bw! | 387 bw! |
388 endfunc | 388 endfunc |
389 | 389 |