summary refs log tree commit diff stats
path: root/tests/float/tfloat5.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/tfloat5.nim')
-rw-r--r--tests/float/tfloat5.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/float/tfloat5.nim b/tests/float/tfloat5.nim
new file mode 100644
index 000000000..0708838fc
--- /dev/null
+++ b/tests/float/tfloat5.nim
@@ -0,0 +1,16 @@
+discard """
+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