emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/d-mode 441b866 134/346: tests: Actually test indentation f


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 441b866 134/346: tests: Actually test indentation for issue #39
Date: Sun, 29 Aug 2021 11:00:17 -0400 (EDT)

branch: elpa/d-mode
commit 441b86691422cbcc23e050ee93afd8acdef7285b
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>

    tests: Actually test indentation for issue #39
---
 tests/I0039.d | 61 +++++++++++++++++++++++++++++++----------------------------
 1 file changed, 32 insertions(+), 29 deletions(-)

diff --git a/tests/I0039.d b/tests/I0039.d
index ff02216..42c8949 100644
--- a/tests/I0039.d
+++ b/tests/I0039.d
@@ -1,54 +1,57 @@
+// #run: (d-test-indent)
+
 void foo()
 {
   version (a)
-  {
-  }
+    {
+    }
   else version (b)
-  {
-  }
+    {
+    }
   else
-  {
-  }
+    {
+    }
 
   debug (A)
-  {
-  }
+    {
+    }
   else debug (B)
-  {
-  }
+    {
+    }
   else
-  {
-  }
+    {
+    }
 
+  // TODO, see #41
   version (a)
-  {
-  }
-  else
-    version (b)
     {
     }
-    else
+  else
+    version (b)
+      {
+      }
+  else
     {
     }
 
   if (true)
-  {
-  }
-  else
-    if (true)
     {
     }
+  else
+    if (true)
+      {
+      }
     else
-    {
-    }
+      {
+      }
 
   static if (1 < 2)
-  {
-  }
+    {
+    }
   else static if (false)
-  {
-  }
+    {
+    }
   else static if (true)
-  {
-  }
+    {
+    }
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]