aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-30 11:54:23 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-07-30 12:18:44 +0800
commit520d94cc23416e14a4535c9ca6b7963681a7f461 (patch)
tree2730e166da0110b02f402f876d9b179bdfd7df9a
parent8ca3c1515c3fd5f70e870e535649a4c2afc5bbaf (diff)
downloadrneovim-520d94cc23416e14a4535c9ca6b7963681a7f461.tar.gz
rneovim-520d94cc23416e14a4535c9ca6b7963681a7f461.tar.bz2
rneovim-520d94cc23416e14a4535c9ca6b7963681a7f461.zip
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>
-rw-r--r--test/old/testdir/test_method.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/old/testdir/test_method.vim b/test/old/testdir/test_method.vim
index fd6e1b1523..1b57bba282 100644
--- 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