mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.2.3506: Vim9: special cases for "g" and "s" insufficiently tested
Problem: Vim9: special cases for "g" and "s" insufficiently tested. Solution: Add a few more test cases.
This commit is contained in:
@@ -1531,11 +1531,35 @@ def Test_no_space_after_command()
|
||||
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
|
||||
|
||||
|
||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3506,
|
||||
/**/
|
||||
3505,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user