changeset 25949:d9f9cdb2337e v8.2.3508

patch 8.2.3508: Vim9: bad separators for "g" and "s" insufficiently tested Commit: https://github.com/vim/vim/commit/051a8a375f8fb6a931fbc5ccca714a200d9b327f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 14 16:53:42 2021 +0100 patch 8.2.3508: Vim9: bad separators for "g" and "s" insufficiently tested Problem: Vim9: bad separators for "g" and "s" insufficiently tested. Solution: Add a few more test cases.
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Oct 2021 18:00:06 +0200
parents 39be91f9606b
children 8b36e7633cee
files src/testdir/test_vim9_cmd.vim src/version.c
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -1499,6 +1499,10 @@ def Test_var_not_cmd()
       g-pat-cmd
   END
   CheckDefAndScriptFailure(lines, 'E1241:', 1)
+  lines =<< trim END
+      g.pat.cmd
+  END
+  CheckDefAndScriptFailure2(lines, 'E1001: Variable not found: g', 'E121: Undefined variable: g', 1)
 
   lines =<< trim END
       s:notexist:repl
@@ -1509,6 +1513,10 @@ def Test_var_not_cmd()
       s-pat-repl
   END
   CheckDefAndScriptFailure(lines, 'E1241:', 1)
+  lines =<< trim END
+      s.pat.repl
+  END
+  CheckDefAndScriptFailure2(lines, 'E1001: Variable not found: s', 'E121: Undefined variable: s', 1)
 
   lines =<< trim END
       w:notexist->len()
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3508,
+/**/
     3507,
 /**/
     3506,