]> granicus.if.org Git - vim/commitdiff
patch 8.2.3508: Vim9: bad separators for "g" and "s" insufficiently tested v8.2.3508
authorBram Moolenaar <Bram@vim.org>
Thu, 14 Oct 2021 15:53:42 +0000 (16:53 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 14 Oct 2021 15:53:42 +0000 (16:53 +0100)
Problem:    Vim9: bad separators for "g" and "s" insufficiently tested.
Solution:   Add a few more test cases.

src/testdir/test_vim9_cmd.vim
src/version.c

index fb668099232d45db21730f2aa7d8417143f46ea2..3bc13ade79e54673f59d347aa500e27e46db5eba 100644 (file)
@@ -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()
index ceb50ea973a7c1ba49ed2510e2ad41c3f9151598..2125972bbf5e037cded682112ddac40fca273cd7 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3508,
 /**/
     3507,
 /**/