| status | osh | |
| pass | 8 | |
| FAIL | 3 | |
| total | 11 | |
| case | osh | description |
| 0 | pass | Float Literals with e-1 |
| 1 | pass | Float Literal with _ |
| 2 | FAIL | Period requires digit on either side, not 5. or .5 |
| details | ||
| 3 | FAIL | Big float Literals with _ |
| details | ||
| 4 | FAIL | Big floats like 1e309 and -1e309 go to Inf / -Inf |
| details | ||
| 5 | pass | Tiny floats go to zero |
| 6 | pass | floatEquals() INFINITY NAN |
| 7 | pass | pretty print INFINITY, -INFINITY, NAN |
| 8 | pass | can't convert NAN, INFINITY to integer |
| 9 | pass | Regression: 1/3 gives 0.3+ |
| 10 | pass | Number of digits in 1/3 |
8 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| osh | 2 Period requires digit on either side, not 5. or .5 [osh stdout] Expected '0.5\n5.0\n' Got '' stdout: stderr: echo $[0.5]
^
[ stdin ]:1: Unexpected token while parsing arithmetic: '.'
|
| osh | 3 Big float Literals with _ [osh stdout] Expected '42000.0005\n420000.005\n4200.00005\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo $[42_000.000_500]
^
[ stdin ]:1: Unexpected token while parsing arithmetic: '.'
|
| osh | 4 Big floats like 1e309 and -1e309 go to Inf / -Inf [osh stdout] Expected 'inf\n-inf\n' Got '' [osh status] Expected 0 Got 1 stdout: stderr: echo $[1e309]
^
[ stdin ]:1: fatal: Invalid integer constant '1e309'
|