]> granicus.if.org Git - vim/commitdiff
patch 8.2.4676: test fails with different error v8.2.4676
authorBram Moolenaar <Bram@vim.org>
Sun, 3 Apr 2022 15:59:02 +0000 (16:59 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 3 Apr 2022 15:59:02 +0000 (16:59 +0100)
Problem:    Test fails with different error.
Solution:   Add argument for :elseif.

src/testdir/test_vimscript.vim
src/version.c

index 38b2585a3aa58b99429d1e0ee9451c1f08658935..619006f1c130ce06d3958976ebead29b9c06fbfe 100644 (file)
@@ -3025,7 +3025,7 @@ func Test_nested_if_else_errors()
 
   " :elseif without :if
   let code =<< trim END
-    elseif
+    elseif 1
   END
   call writefile(code, 'Xtest')
   call AssertException(['source Xtest'], 'Vim(elseif):E582: :elseif without :if')
@@ -3033,7 +3033,7 @@ func Test_nested_if_else_errors()
   " :elseif without :if
   let code =<< trim END
     while 1
-      elseif
+      elseif 1
     endwhile
   END
   call writefile(code, 'Xtest')
@@ -3043,7 +3043,7 @@ func Test_nested_if_else_errors()
   let code =<< trim END
     try
     finally
-      elseif
+      elseif 1
     endtry
   END
   call writefile(code, 'Xtest')
@@ -3052,7 +3052,7 @@ func Test_nested_if_else_errors()
   " :elseif without :if
   let code =<< trim END
     try
-      elseif
+      elseif 1
     endtry
   END
   call writefile(code, 'Xtest')
@@ -3063,7 +3063,7 @@ func Test_nested_if_else_errors()
     try
       throw "a"
     catch /a/
-      elseif
+      elseif 1
     endtry
   END
   call writefile(code, 'Xtest')
index ec9be2896610e0caa2ed5c176956dfaccdb14885..4deb534f244737d24d446d880eb48fccb29f5610 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4676,
 /**/
     4675,
 /**/