fix issue 4181. add testcase.

This commit is contained in:
Parashurama 2016-05-18 12:12:01 +02:00
commit f5761e23d3
2 changed files with 20 additions and 2 deletions

15
tests/float/tfloat5.nim Normal file
View file

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