Patch 8.2.3506 (after 8.2.3503)
Problem: Vim9: special cases for "g" and "s" insufficiently tested.
Solution: Add a few more test cases.
Files: src/testdir/test_vim9_cmd.vim
*** ../vim-8.2.3505/src/testdir/test_vim9_cmd.vim 2021-10-13
15:04:28.863631800 +0100
--- src/testdir/test_vim9_cmd.vim 2021-10-13 20:44:14.159331739 +0100
***************
*** 1531,1541 ****
--- 1531,1565 ----
g /pat/cmd
END
CheckDefAndScriptFailure(lines, 'E1242:', 1)
+ lines =<< trim END
+ g #pat#cmd
+ END
+ CheckDefAndScriptFailure(lines, 'E1242:', 1)
+ lines =<< trim END
+ g#pat#cmd
+ END
+ CheckDefAndScriptSuccess(lines)
+ lines =<< trim END
+ g# pat#cmd
+ END
+ CheckDefAndScriptSuccess(lines)
lines =<< trim END
s /pat/repl
END
CheckDefAndScriptFailure(lines, 'E1242:', 1)
+ lines =<< trim END
+ s #pat#repl
+ END
+ CheckDefAndScriptFailure(lines, 'E1242:', 1)
+ lines =<< trim END
+ s#pat#repl
+ END
+ CheckDefExecAndScriptFailure(lines, 'E486:', 1)
+ lines =<< trim END
+ s# pat#repl
+ END
+ CheckDefExecAndScriptFailure(lines, 'E486:', 1)
enddef
*** ../vim-8.2.3505/src/version.c 2021-10-13 15:37:10.662858907 +0100
--- src/version.c 2021-10-13 20:45:39.752655921 +0100
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 3506,
/**/
--
hundred-and-one symptoms of being an internet addict:
145. You e-mail your boss, informing him you'll be late.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20211013202016.74884C80053%40moolenaar.net.