spec test index / oilshell.org
status | osh | |
FAIL | 17 | |
total | 17 | |
case | osh | description |
0 | FAIL | Exact equality with === and !== |
details | ||
1 | FAIL | Approximate equality of Str x {Str, Int, Bool} with ~== |
details | ||
2 | FAIL | Wrong Types with ~== |
details | ||
3 | FAIL | === on float not allowed |
details | ||
4 | FAIL | floatsEqual() |
details | ||
5 | FAIL | Comparison converts from Str -> Int or Float |
details | ||
6 | FAIL | Comparison of Int |
details | ||
7 | FAIL | Comparison of Str does conversion to Int |
details | ||
8 | FAIL | Mixed Type Comparison does conversion to Int |
details | ||
9 | FAIL | Invalid String is an error |
details | ||
10 | FAIL | Bool conversion -- explicit allowed, implicit not allowed |
details | ||
11 | FAIL | Chained Comparisons |
details | ||
12 | FAIL | List / "Tuple" comparison is not allowed |
details | ||
13 | FAIL | Ternary op behaves like if statement |
details | ||
14 | FAIL | Undefined comparisons |
details | ||
15 | FAIL | Non-comparable types in case arms |
details | ||
16 | FAIL | object identity |
details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 17 failed, 0 timeouts, 0 cases skipped 17 failed under osh
osh | 0 Exact equality with === and !== [osh stdout] Expected 'ok\nok\nok\nok\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 Approximate equality of Str x {Str, Int, Bool} with ~== [osh stdout] Expected 'Str-Str\nStr-Int\nStr-Negative\nStr-Underscore\nStr-Bool\nbool matrix\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 Wrong Types with ~== [osh stdout] Expected 'one\n', got '' [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 === on float not allowed [osh stdout] Expected 'status=3\nstatus=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 | 4 floatsEqual() [osh stdout] Expected '(Bool) true\n(Bool) false\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 Comparison converts from Str -> Int or Float [osh stdout] Expected ' i i true\nsi i true\n i si true\n---\n f f true\nsf f true\n f sf true\n---\n i f false\nsi f false\n i sf false\n---\n f i true\nsf i true\n f si true\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 Comparison of Int [osh stdout] Expected '<\n<=\n>\n>=\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 Comparison of Str does conversion to Int [osh stdout] Expected '<\n<=\n>\n>=\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 Mixed Type Comparison does conversion to Int [osh stdout] Expected '<\n<=\n>\n>=\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 Invalid String is an error [osh status] Expected 3, 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 Bool conversion -- explicit allowed, implicit not allowed [osh stdout] Expected '<\n<=\n', got '' [osh status] Expected 3, 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 | 11 Chained Comparisons [osh stdout] Expected '123\n123\nno\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 | 12 List / "Tuple" comparison is not allowed [osh status] Expected 3, 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 | 13 Ternary op behaves like if statement [osh stdout] Expected 'y=42\nx=42\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 | 14 Undefined comparisons [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 | 15 Non-comparable types in case arms [osh status] Expected 3, 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 | 16 object identity [osh stdout] Expected '(Bool) true\n(Bool) true\n\n(Bool) false\n(Bool) true\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_ |