diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-05-18 12:42:43 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-05-18 12:42:43 +0200 |
commit | 9fd2d6ff5aa43282de798627051f8b0805d248a9 (patch) | |
tree | 61447f10a7b5e43c5ad32505b51a054ec4176bb8 /tests | |
parent | 2ac3e1237231829ce9395cf6935c4622d2dfa9eb (diff) | |
parent | f5761e23d3a6424eab3979d66e6605b1611b1d0c (diff) | |
download | Nim-9fd2d6ff5aa43282de798627051f8b0805d248a9.tar.gz |
Merge pull request #4182 from Parashurama/fix_issue_4181
fix issue #4181. add testcase.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/float/tfloat5.nim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/float/tfloat5.nim b/tests/float/tfloat5.nim new file mode 100644 index 000000000..aa7dc6c53 --- /dev/null +++ b/tests/float/tfloat5.nim @@ -0,0 +1,15 @@ +discard """ + file: "tfloat5.nim" + output: '''0 : 0.0 +0 : 0.0 +0 : 0.0 +0 : 0.0''' +""" + +import parseutils + +var f: float +echo "*".parseFloat(f), " : ", f +echo "/".parseFloat(f), " : ", f +echo "+".parseFloat(f), " : ", f +echo "-".parseFloat(f), " : ", f |