summary refs log tree commit diff stats
path: root/nimpretty/tests
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-07-12 09:14:21 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-12 09:14:21 +0200
commit2f0a50fa51f9dd42c0a8c51d4f86f81017b3c6f2 (patch)
treedb53022c3e5b30e67de0d44f56c74d7ed866ce7c /nimpretty/tests
parent3d88d06b32d1337fda45d419e9cd2ad845b74d5d (diff)
downloadNim-2f0a50fa51f9dd42c0a8c51d4f86f81017b3c6f2.tar.gz
nimpretty: fix #11700, no extra newlines (#11714)
Diffstat (limited to 'nimpretty/tests')
-rw-r--r--nimpretty/tests/exhaustive.nim20
-rw-r--r--nimpretty/tests/expected/exhaustive.nim20
2 files changed, 40 insertions, 0 deletions
diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim
index 057062fa0..7dde99ca5 100644
--- a/nimpretty/tests/exhaustive.nim
+++ b/nimpretty/tests/exhaustive.nim
@@ -741,3 +741,23 @@ proc `==` *(a, b: Color): bool
 proc `==` *(a, b: Color): bool {.borrow.}
   ## Compares two colors.
   ##
+
+
+var rows1 = await pool.rows(sql"""
+    SELECT STUFF
+    WHERE fffffffffffffffffffffffffffffff
+  """,
+  @[
+    "AAAA",
+    "BBBB"
+  ]
+)
+
+var rows2 = await pool.rows(sql"""
+    SELECT STUFF
+    WHERE fffffffffffffffffffffffffffffffgggggggggggggggggggggggggghhhhhhhhhhhhhhhheeeeeeiiiijklm""",
+  @[
+    "AAAA",
+    "BBBB"
+  ]
+)
diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim
index dc0bb7568..79f0ad05a 100644
--- a/nimpretty/tests/expected/exhaustive.nim
+++ b/nimpretty/tests/expected/exhaustive.nim
@@ -749,3 +749,23 @@ proc `==` *(a, b: Color): bool
 proc `==` *(a, b: Color): bool {.borrow.}
   ## Compares two colors.
   ##
+
+
+var rows1 = await pool.rows(sql"""
+    SELECT STUFF
+    WHERE fffffffffffffffffffffffffffffff
+  """,
+  @[
+    "AAAA",
+    "BBBB"
+  ]
+)
+
+var rows2 = await pool.rows(sql"""
+    SELECT STUFF
+    WHERE fffffffffffffffffffffffffffffffgggggggggggggggggggggggggghhhhhhhhhhhhhhhheeeeeeiiiijklm""",
+  @[
+    "AAAA",
+    "BBBB"
+  ]
+)