From 667af87e66ed1ad4f3dbe455df72257d21fbc426 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 7 Jun 2019 12:59:31 +0200 Subject: nimpretty: fixes #9505 [bugfix] --- nimpretty/tests/expected/wrong_ind.nim | 24 ++++++++++++++++++++++++ nimpretty/tests/wrong_ind.nim | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 nimpretty/tests/expected/wrong_ind.nim create mode 100644 nimpretty/tests/wrong_ind.nim (limited to 'nimpretty/tests') 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 -- cgit 1.4.1-2-gfad0