]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0542: tests: test_codestyle fails v9.2.0542
authorChristian Brabandt <cb@256bit.org>
Tue, 26 May 2026 21:12:11 +0000 (21:12 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 26 May 2026 21:12:11 +0000 (21:12 +0000)
Problem:  tests: test_codestyle fails
          (after v9.2.0541)
Solution: Replace tabs by spaces

related: #20253

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_vim9_class.vim
src/testdir/test_vim9_interface.vim
src/version.c

index e49e5a8dc3d2907cd7d2d5f95e02aa3cb1b6eae4..9f060a9f47e10e867fdafaf5bdb8c675cf246104 100644 (file)
@@ -54,7 +54,7 @@ def Test_class_basic()
   lines =<< trim END
     vim9script
     class Something
-    :  endcla
+    :   endcla
   END
   v9.CheckSourceFailure(lines, 'E1065: Command cannot be shortened: endcla', 3)
 
@@ -11880,14 +11880,14 @@ endfunc
 " Test for colon and whitespace before class, endclass, static, and abstract
 def Test_colon_whitespace()
   var lines =<< trim END
-    :  vim9script
-    :  class C
+    :   vim9script
+    :   class C
        # TODO: Fix :public - gives E1065
-       # :     public var p = true
-       :       static var s = true
-    :  endclass
-    :  abstract class A
-    :  endclass
+       # :      public var p = true
+       :        static var s = true
+    :   endclass
+    :   abstract class A
+    :   endclass
   END
   v9.CheckSourceSuccess(lines)
 enddef
index 6377eb38e07a2e9f6d9a9f9425029d536bd4c505..0c99e0bc71a79c5772d8849fefda266e1a2d279d 100644 (file)
@@ -90,7 +90,7 @@ def Test_interface_basics()
   lines =<< trim END
     vim9script
     interface Short
-    :  endint
+    :   endint
   END
   v9.CheckSourceFailure(lines, 'E1065: Command cannot be shortened: endint', 3)
 
index 6b9c13f396f746991c49e6d63a7c52b2b910dadb..55f8b8a7ecb1f89cb7b1b4ee3ef497b4675f98b2 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    542,
 /**/
     541,
 /**/