summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-18 12:42:43 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-18 12:42:43 +0200
commit9fd2d6ff5aa43282de798627051f8b0805d248a9 (patch)
tree61447f10a7b5e43c5ad32505b51a054ec4176bb8 /tests
parent2ac3e1237231829ce9395cf6935c4622d2dfa9eb (diff)
parentf5761e23d3a6424eab3979d66e6605b1611b1d0c (diff)
downloadNim-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.nim15
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