diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2014-04-09 00:06:38 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2014-04-09 00:06:38 +0200 |
commit | 36869b3aed66b7edd8c116929eb418bb9d6f4554 (patch) | |
tree | 62c215d24671625889118e04b19d68d79e6d0795 /tests/system/toString.nim | |
parent | bb8b9da3919447824472913561b2e127cccf16d1 (diff) | |
parent | 71b69a627f0558bd2286df54caeab267d2ddeb5f (diff) | |
download | Nim-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.nim | 11 |
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])) |