changeset 29990:afc310de4ff3 v9.0.0333

patch 9.0.0333: method test fails Commit: https://github.com/vim/vim/commit/171a1607f4b0b3cdcbbe5e886da37a5d11f15684 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 18:26:19 2022 +0100 patch 9.0.0333: method test fails Problem: Method test fails. Solution: Adjust test for items() now working on string.
author Bram Moolenaar <Bram@vim.org>
date Tue, 30 Aug 2022 19:30:04 +0200
parents 85e7d9e4a484
children 43430b4d48db
files src/testdir/test_method.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_method.vim
+++ b/src/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
--- a/src/version.c
+++ b/src/version.c
@@ -708,6 +708,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    333,
+/**/
     332,
 /**/
     331,