Merge pull request #901 from reactormonk/seq_toString

Added `$` for seq
This commit is contained in:
Andreas Rumpf 2014-04-09 00:06:38 +02:00
commit 36869b3aed
2 changed files with 34 additions and 18 deletions

11
tests/system/toString.nim Normal file
View file

@ -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]))