commit 520d94cc23416e14a4535c9ca6b7963681a7f461
parent 8ca3c1515c3fd5f70e870e535649a4c2afc5bbaf
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue, 30 Jul 2024 11:54:23 +0800
vim-patch:9.0.0333: method test fails
Problem: Method test fails.
Solution: Adjust test for items() now working on string.
https://github.com/vim/vim/commit/171a1607f4b0b3cdcbbe5e886da37a5d11f15684
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/old/testdir/test_method.vim b/test/old/testdir/test_method.vim
@@ -78,7 +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:')
+ call assert_fails('eval 123->items()', 'E1225:')
eval 'abc'->printf('the %s arg')->assert_equal('the abc arg')
endfunc