spec test index / oilshell.org
status | osh | |
FAIL | 11 | |
total | 11 | |
case | osh | description |
0 | FAIL | Float Literals with e-1 |
details | ||
1 | FAIL | Float Literal with _ |
details | ||
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 | FAIL | Tiny floats go to zero |
details | ||
6 | FAIL | floatEquals() INFINITY NAN |
details | ||
7 | FAIL | pretty print INFINITY, -INFINITY, NAN |
details | ||
8 | FAIL | can't convert NAN, INFINITY to integer |
details | ||
9 | FAIL | Regression: 1/3 gives 0.3+ |
details | ||
10 | FAIL | Number of digits in 1/3 |
details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped 11 failed under osh
osh | 0 Float Literals with e-1 [osh stdout] Expected 'ok\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 1 Float Literal with _ [osh stdout] Expected 'ok\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 2 Period requires digit on either side, not 5. or .5 [osh stdout] Expected '0.5\n5.0\n', got '' [osh status] Expected 2, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 3 Big float Literals with _ [osh stdout] Expected '42000.0005\n420000.005\n4200.00005\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
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 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 5 Tiny floats go to zero [osh stdout] Expected 'float=0.0\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 6 floatEquals() INFINITY NAN [osh stdout] Expected 'inf\nneg_inf\nnan is not nan\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 7 pretty print INFINITY, -INFINITY, NAN [osh stdout] Expected '(List) [INFINITY, -INFINITY, NAN]\n(List) [INFINITY,-INFINITY,NAN]\n' Got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 8 can't convert NAN, INFINITY to integer [osh stdout] Expected 'code 3\ncode 3\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 9 Regression: 1/3 gives 0.3+ [osh stdout] Expected 'one-third\ntwo-thirds\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 10 Number of digits in 1/3 [osh stdout] Expected 'pass\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |