diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-30 16:40:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-30 16:40:45 +0100 |
commit | f92cfb1acc3fef74eef0c83c1a35a2b6a9f93a9b (patch) | |
tree | 4a5a29e45481197f6871158e7115c918a28ef73a /src/testdir | |
parent | 24735f2a19c666f545330a267a32ae5df72db25c (diff) |
patch 9.0.0330: method tests failv9.0.0330
Problem: Method tests fail.
Solution: Adjust for change of items().
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_method.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_method.vim b/src/testdir/test_method.vim index 6b62d36209..ee2093f285 100644 --- a/src/testdir/test_method.vim +++ b/src/testdir/test_method.vim @@ -20,9 +20,8 @@ func Test_list_method() call assert_equal(2, l->get(1)) call assert_equal(1, l->index(2)) call assert_equal([0, 1, 2, 3], [1, 2, 3]->insert(0)) - call assert_fails('eval l->items()', 'E715:') call assert_equal('1 2 3', l->join()) - call assert_fails('eval l->keys()', 'E715:') + call assert_fails('eval l->keys()', 'E1206:') call assert_equal(3, l->len()) call assert_equal([2, 3, 4], [1, 2, 3]->map('v:val + 1')) call assert_equal(3, l->max()) @@ -34,7 +33,7 @@ func Test_list_method() call assert_equal('[1, 2, 3]', l->string()) call assert_equal(v:t_list, l->type()) call assert_equal([1, 2, 3], [1, 1, 2, 3, 3]->uniq()) - call assert_fails('eval l->values()', 'E715:') + call assert_fails('eval l->values()', 'E1206:') call assert_fails('echo []->len', 'E107:') endfunc @@ -79,6 +78,7 @@ func Test_string_method() eval "a\rb\ec"->strtrans()->assert_equal('a^Mb^[c') eval "aあb"->strwidth()->assert_equal(4) eval 'abc'->substitute('b', 'x', '')->assert_equal('axc') + call assert_fails('eval "x"->items()', 'E1227:') eval 'abc'->printf('the %s arg')->assert_equal('the abc arg') endfunc |