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

@@ -1,5 +1,5 @@
discard """
output: "5.0000000000000000e+00"
output: "5.0"
"""
type

View File

@@ -1,7 +1,7 @@
discard """
output: '''108
11 -1 1936
4.0000000000000002e-01
0.4
true
truefalse'''
"""

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