spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 13 | 13 | |
FAIL | 1 | 1 | |
total | 14 | 14 | |
case | osh | osh-cpp | description |
0 | pass | pass | Multiple right brackets inside expression |
1 | pass | pass | Slicing of string with constants |
2 | pass | pass | Slicing of string with variables |
3 | pass | pass | Array index on LHS of assignment |
4 | pass | pass | Array index on LHS with indices |
5 | pass | pass | Slicing of string with expressions |
6 | pass | pass | Ambiguous colon in slice |
7 | pass | pass | Triple parens should be disambiguated |
8 | pass | pass | Quadruple parens should be disambiguated |
9 | pass | pass | ExprSub $[] happens to behave the same on simple cases |
10 | pass | pass | Empty expression (( )) $(( )) |
11 | pass | pass | Empty expression for (( )) |
12 | FAIL | FAIL | Empty expression in ${a[@]:slice} |
details | details | ||
13 | pass | pass | Empty expression a[] |
26 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 12 Empty expression in ${a[@]:slice} [osh stdout] Expected 'slice a b c d e f\nstatus=0\n\nslice\nstatus=0\n\n' Got 'slice a b c d e f\nstatus=0\n\n' [osh status] Expected 0, got 2 stdout: slice a b c d e f status=0stderr: echo slice ${a[@]: : } ^ [ stdin ]:7: Token can't be used in prefix position |
osh-cpp | 12 Empty expression in ${a[@]:slice} [osh-cpp stdout] Expected 'slice a b c d e f\nstatus=0\n\nslice\nstatus=0\n\n' Got 'slice a b c d e f\nstatus=0\n\n' [osh-cpp status] Expected 0, got 2 stdout: slice a b c d e f status=0stderr: echo slice ${a[@]: : } ^ [ stdin ]:7: Token can't be used in prefix position |