branch: elpa/d-mode
commit 441b86691422cbcc23e050ee93afd8acdef7285b
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
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)
- {
- }
+ {
+ }
}