spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 11 | 8 | |
FAIL | 0 | 3 | |
total | 11 | 11 | |
case | osh | osh-cpp | description |
0 | pass | pass | Pound char literal (is an integer TODO: could be ord()) |
1 | pass | pass | The literal #''' isn't accepted (use \' instead) |
2 | pass | pass | Float Literals with e-1 |
3 | pass | pass | Float Literal with _ |
4 | pass | pass | Period requires digit on either side, not 5. or .5 |
5 | pass | FAIL | Big float Literals with _ |
details | |||
6 | pass | pass | Big floats like 1e309 and -1e309 go to Inf / -Inf |
7 | pass | pass | Tiny floats go to zero |
8 | pass | FAIL | floatEquals() INFINITY NAN |
details | |||
9 | pass | FAIL | Regression: 1/3 gives 0.3+ |
details | |||
10 | pass | pass | Number of digits in 1/3 |
19 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh-cpp | 5 Big float Literals with _ [osh-cpp stdout] Expected '42000.0005\n420000.005\n4200.00005\n', got '42000.000500000002\n420000.005\n4200.0000499999996\n' stdout: 42000.000500000002 420000.005 4200.0000499999996stderr: |
osh-cpp | 8 floatEquals() INFINITY NAN [osh-cpp stdout] Expected 'inf\nneg_inf\nnan is not nan\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 9 Regression: 1/3 gives 0.3+ [osh-cpp stdout] Expected 'one-third\ntwo-thirds\n', got 'one-third\n' stdout: one-thirdstderr: |