spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 16 | 16 | |
FAIL | 1 | 1 | |
total | 17 | 17 | |
case | osh | osh-cpp | description |
0 | pass | pass | Exact equality with === and !== |
1 | pass | pass | Approximate equality of Str x {Str, Int, Bool} with ~== |
2 | pass | pass | Wrong Types with ~== |
3 | pass | pass | === on float not allowed |
4 | pass | pass | floatsEqual() |
5 | pass | pass | Comparison converts from Str -> Int or Float |
6 | pass | pass | Comparison of Int |
7 | pass | pass | Comparison of Str does conversion to Int |
8 | pass | pass | Mixed Type Comparison does conversion to Int |
9 | FAIL | FAIL | Invalid String is an error |
details | details | ||
10 | pass | pass | Bool conversion -- explicit allowed, implicit not allowed |
11 | pass | pass | Chained Comparisons |
12 | pass | pass | List / "Tuple" comparison is not allowed |
13 | pass | pass | Ternary op behaves like if statement |
14 | pass | pass | Undefined comparisons |
15 | pass | pass | Non-comparable types in case arms |
16 | pass | pass | object identity |
32 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 9 Invalid String is an error [osh stdout] Expected '', got 'code=3\n(Bool) true\ncode=0\n' [osh status] Expected 3, got 0 stdout: code=3 (Bool) true code=0stderr: |
osh-cpp | 9 Invalid String is an error [osh-cpp stdout] Expected '', got 'code=3\n(Bool) true\ncode=0\n' [osh-cpp status] Expected 3, got 0 stdout: code=3 (Bool) true code=0stderr: |