Tests for $(float)

This commit is contained in:
katlogic
2014-06-15 01:53:09 +02:00
parent cea2a9087d
commit 9532951cfc
3 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
discard """
output:'''2.3242
2.982
123912.1
123912.1823
5.0
1e+100
inf
-inf
nan
'''
"""
echo($(2.3242))
echo($(2.982))
echo($(123912.1))
echo($(123912.1823))
echo($(5.0))
echo($(1e100))
echo($(1e1000000))
echo($(-1e1000000))
echo($(0.0/0.0))