diff options
author | katlogic <kat@lua.cz> | 2014-06-15 01:53:09 +0200 |
---|---|---|
committer | katlogic <kat@lua.cz> | 2014-06-15 01:53:09 +0200 |
commit | 9532951cfc4280d815160a4c86c7fec60d2a2001 (patch) | |
tree | c9b7f79e940261b64c5f4fa06fd21da03d1b83a8 /tests/system | |
parent | cea2a9087d44378802c77ba041a4f54cd7b6087d (diff) | |
download | Nim-9532951cfc4280d815160a4c86c7fec60d2a2001.tar.gz |
Tests for `$`(float)
Diffstat (limited to 'tests/system')
-rw-r--r-- | tests/system/tfloatToString.nim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/system/tfloatToString.nim b/tests/system/tfloatToString.nim new file mode 100644 index 000000000..bb45a91d7 --- /dev/null +++ b/tests/system/tfloatToString.nim @@ -0,0 +1,22 @@ +discard """ + output:'''2.3242 +2.982 +123912.1 +123912.1823 +5.0 +1e+100 +inf +-inf +nan +''' +""" + +echo($(2.3242)) +echo($(2.982)) +echo($(123912.1)) +echo($(123912.1823)) +echo($(5.0)) +echo($(1e100)) +echo($(1e1000000)) +echo($(-1e1000000)) +echo($(0.0/0.0)) |