summary refs log tree commit diff stats
path: root/nimpretty
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-06-07 12:59:31 +0200
committerAraq <rumpf_a@web.de>2019-06-07 12:59:31 +0200
commit667af87e66ed1ad4f3dbe455df72257d21fbc426 (patch)
tree82d0b6801b2ece271706f5d677053a88472071fe /nimpretty
parent790bc5b07bd192d4ddd2bcd08179e8cd82236f55 (diff)
downloadNim-667af87e66ed1ad4f3dbe455df72257d21fbc426.tar.gz
nimpretty: fixes #9505 [bugfix]
Diffstat (limited to 'nimpretty')
-rw-r--r--nimpretty/tests/expected/wrong_ind.nim24
-rw-r--r--nimpretty/tests/wrong_ind.nim24
2 files changed, 48 insertions, 0 deletions
diff --git a/nimpretty/tests/expected/wrong_ind.nim b/nimpretty/tests/expected/wrong_ind.nim
new file mode 100644
index 000000000..a21e94618
--- /dev/null
+++ b/nimpretty/tests/expected/wrong_ind.nim
@@ -0,0 +1,24 @@
+
+# bug #9505
+
+import std/[
+    strutils, ospaths, os
+]
+import pkg/[
+  regex
+]
+
+proc fun() =
+    let a = [
+      1,
+      2,
+    ]
+    discard
+
+proc funB() =
+    let a = [
+      1,
+      2,
+      3
+    ]
+    discard
diff --git a/nimpretty/tests/wrong_ind.nim b/nimpretty/tests/wrong_ind.nim
new file mode 100644
index 000000000..0559673f8
--- /dev/null
+++ b/nimpretty/tests/wrong_ind.nim
@@ -0,0 +1,24 @@
+
+# bug #9505
+
+import std/[
+    strutils, ospaths, os
+]
+import pkg/[
+  regex
+]
+
+proc fun() =
+  let a = [
+    1,
+    2,
+  ]
+  discard
+
+proc funB() =
+  let a = [
+    1,
+    2,
+    3
+  ]
+  discard