spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 10 | 1 | |
FAIL | 2 | 11 | |
total | 12 | 12 | |
case | osh | osh-cpp | description |
0 | pass | FAIL | Exact equality with === and !== |
details | |||
1 | pass | FAIL | Approximate equality of Str x {Str, Int, Bool} with ~== |
details | |||
2 | pass | FAIL | Wrong Types with ~== |
details | |||
3 | FAIL | pass | Equality of ~== with Float (deferred) |
details | |||
4 | pass | FAIL | Comparison of Int |
details | |||
5 | pass | FAIL | Comparison of Str does conversion to Int |
details | |||
6 | pass | FAIL | Mixed Type Comparison does conversion to Int |
details | |||
7 | pass | FAIL | Invalid String is an error |
details | |||
8 | pass | FAIL | Bool conversion -- explicit allowed, implicit not allowed |
details | |||
9 | pass | FAIL | Chained Comparisons |
details | |||
10 | FAIL | FAIL | Tuple comparison is not allowed |
details | details | ||
11 | pass | FAIL | Collection membership |
details |
11 passed, 0 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh-cpp | 0 Exact equality with === and !== [osh-cpp stdout] Expected 'ok\nok\nok\nok\n', got '' stdout: stderr: |
osh-cpp | 1 Approximate equality of Str x {Str, Int, Bool} with ~== [osh-cpp stdout] Expected 'Str-Str\nStr-Int\nStr-Bool\nbool matrix\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: const matrix = [ ^ [ stdin ]:25: Syntax error in expression (near Id.Op_Newline) |
osh-cpp | 2 Wrong Types with ~== [osh-cpp stdout] Expected 'one\n', got 'one\ntwo\n' [osh-cpp status] Expected 1, got 0 stdout: one twostderr: |
osh | 3 Equality of ~== with Float (deferred) [osh status] Expected 0, got 1 stdout: stderr: if (42 ~== 42.0) { ^~~ [ stdin ]:3: fatal: ~== expects a string on the left |
osh-cpp | 4 Comparison of Int [osh-cpp stdout] Expected '<\n<=\n>\n>=\n', got '' stdout: stderr: |
osh-cpp | 5 Comparison of Str does conversion to Int [osh-cpp stdout] Expected '<\n<=\n>\n>=\n', got '' stdout: stderr: |
osh-cpp | 6 Mixed Type Comparison does conversion to Int [osh-cpp stdout] Expected '<\n<=\n>\n>=\n', got '' stdout: stderr: |
osh-cpp | 7 Invalid String is an error [osh-cpp stdout] Expected '', got 'should not get here\n' [osh-cpp status] Expected 3, got 0 stdout: should not get herestderr: |
osh-cpp | 8 Bool conversion -- explicit allowed, implicit not allowed [osh-cpp stdout] Expected '<\n<=\n', got 'should not get here\n' [osh-cpp status] Expected 3, got 0 stdout: should not get herestderr: |
osh-cpp | 9 Chained Comparisons [osh-cpp stdout] Expected '123\n123\nno\n', got 'no\n' stdout: nostderr: |
osh | 10 Tuple comparison is not allowed [osh stdout] Expected 'yes1\nyes2\n', got '' [osh status] Expected 0, got 3 stdout: stderr: var t3 = 3, 1 ^~~ [ stdin ]:5: fatal: Expected Int or Float operands |
osh-cpp | 10 Tuple comparison is not allowed [osh-cpp stdout] Expected 'yes1\nyes2\n', got '' stdout: stderr: |
osh-cpp | 11 Collection membership [osh-cpp stdout] Expected 'Int-in-List\nStr-in-List\nDict-in-List\nStr-in-Dict\n' Got '' stdout: stderr: |