fix issue 4181. add testcase.
This commit is contained in:
parent
3f075b7921
commit
f5761e23d3
2 changed files with 20 additions and 2 deletions
15
tests/float/tfloat5.nim
Normal file
15
tests/float/tfloat5.nim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue