summary refs log tree commit diff stats
path: root/tests/system/toString.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-04-09 00:06:38 +0200
committerAndreas Rumpf <rumpf_a@web.de>2014-04-09 00:06:38 +0200
commit36869b3aed66b7edd8c116929eb418bb9d6f4554 (patch)
tree62c215d24671625889118e04b19d68d79e6d0795 /tests/system/toString.nim
parentbb8b9da3919447824472913561b2e127cccf16d1 (diff)
parent71b69a627f0558bd2286df54caeab267d2ddeb5f (diff)
downloadNim-36869b3aed66b7edd8c116929eb418bb9d6f4554.tar.gz
Merge pull request #901 from reactormonk/seq_toString
Added `$` for seq
Diffstat (limited to 'tests/system/toString.nim')
-rw-r--r--tests/system/toString.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/system/toString.nim b/tests/system/toString.nim
new file mode 100644
index 000000000..17dcb3cb4
--- /dev/null
+++ b/tests/system/toString.nim
@@ -0,0 +1,11 @@
+discard """
+  output:'''@[23, 45]
+@[, foo, bar]
+[, foo, bar]
+[23, 45]'''
+"""
+
+echo($(@[23, 45]))
+echo($(@["", "foo", "bar"]))
+echo($(["", "foo", "bar"]))
+echo($([23, 45]))