changeset 23713:572b0f1c2e28 v8.2.2398

patch 8.2.2398: method test fails Commit: https://github.com/vim/vim/commit/40be52ba71b9d6a7f586b1e77db8e827ff4c0c42 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 23 15:27:09 2021 +0100 patch 8.2.2398: method test fails Problem: Method test fails. Solution: Adjust test for allowed white space.
author Bram Moolenaar <Bram@vim.org>
date Sat, 23 Jan 2021 15:30:05 +0100
parents f0763be692f4
children a2a4b9b9658f
files src/testdir/test_method.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_method.vim
+++ b/src/testdir/test_method.vim
@@ -131,9 +131,11 @@ func Test_method_syntax()
   eval [1, 2, 3]  
 	\ ->sort(
 	\ )
-  call assert_fails('eval [1, 2, 3]-> sort()', 'E15:')
+  eval [1, 2, 3]-> sort()
+
   call assert_fails('eval [1, 2, 3]->sort ()', 'E274:')
-  call assert_fails('eval [1, 2, 3]-> sort ()', 'E15:')
+  call assert_fails('eval [1, 2, 3] ->sort ()', 'E274:')
+  call assert_fails('eval [1, 2, 3]-> sort ()', 'E274:')
 endfunc
 
 func Test_method_lambda()
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2398,
+/**/
     2397,
 /**/
     2396,