summary refs log tree commit diff stats
path: root/tests/stdlib/tstring.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tstring.nim')
-rw-r--r--tests/stdlib/tstring.nim17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/stdlib/tstring.nim b/tests/stdlib/tstring.nim
index 852ff4fb7..36a2e9800 100644
--- a/tests/stdlib/tstring.nim
+++ b/tests/stdlib/tstring.nim
@@ -1,5 +1,7 @@
 discard """
-  output: "OK"
+  output: '''OK
+@[@[], @[], @[], @[], @[]]
+'''
 """
 const characters = "abcdefghijklmnopqrstuvwxyz"
 const numbers = "1234567890"
@@ -76,3 +78,16 @@ proc test_string_cmp() =
 
 test_string_slice()
 test_string_cmp()
+
+
+#--------------------------
+# bug #7816
+import sugar
+import sequtils
+
+proc tester[T](x: T) =
+  let test = toSeq(0..4).map(i => newSeq[int]())
+  echo test
+
+tester(1)
+