spec test index / oilshell.org
| status | osh | |
| pass | 10 | |
| FAIL | 2 | |
| total | 12 | |
| case | osh | description |
| 0 | pass | Exact equality with === and !== |
| 1 | pass | Approximate equality of Str x {Str, Int, Bool} with ~== |
| 2 | pass | Wrong Types with ~== |
| 3 | FAIL | Equality of ~== with Float (deferred) |
| details | ||
| 4 | pass | Comparison of Int |
| 5 | pass | Comparison of Str does conversion to Int |
| 6 | pass | Mixed Type Comparison does conversion to Int |
| 7 | pass | Invalid String is an error |
| 8 | pass | Bool conversion -- explicit allowed, implicit not allowed |
| 9 | pass | Chained Comparisons |
| 10 | FAIL | Tuple comparison is not allowed |
| details | ||
| 11 | pass | Collection membership |
10 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| 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 | 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 |