diff src/testdir/test_vim9_cmd.vim @ 27964:c31bee906b7a v8.2.4507

patch 8.2.4507: test fails because of new error message Commit: https://github.com/vim/vim/commit/f78ee2b49f0b060c642764a620b4c55ab13af82e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 4 23:22:27 2022 +0000 patch 8.2.4507: test fails because of new error message Problem: Test fails because of new error message. Solution: Avoid the test fails.
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Mar 2022 00:30:02 +0100
parents b081ba78675a
children 5bf3ed75e26c
line wrap: on
line diff
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -1834,14 +1834,18 @@ def Test_no_space_after_command()
       g #pat#cmd
   END
   v9.CheckDefAndScriptFailure(lines, 'E1242:', 1)
+
+  new
+  setline(1, 'some pat')
   lines =<< trim END
-      g#pat#cmd
+      g#pat#print
   END
   v9.CheckDefAndScriptSuccess(lines)
   lines =<< trim END
-      g# pat#cmd
+      g# pat#print
   END
   v9.CheckDefAndScriptSuccess(lines)
+  bwipe!
 
   lines =<< trim END
       s /pat/repl