spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 17 | 17 | |
FAIL | 1 | 1 | |
total | 18 | 18 | |
case | osh | osh_ALT | description |
0 | pass | pass | integers expression and augmented assignment |
1 | pass | pass | const can't be mutated |
2 | pass | pass | const can't be redeclared |
3 | pass | pass | 'setvar' mutates local |
4 | pass | pass | 'setvar' CREATES global |
5 | pass | pass | 'set' when variable isn't declared results in fatal error |
6 | pass | pass | setglobal |
7 | pass | pass | setglobal of undeclared var is an error |
8 | pass | pass | var/setvar x, y = 1, 2 |
9 | pass | pass | setvar d->key = 42 (setitem) |
10 | pass | pass | setvar mylist[1] = 42 (setitem) |
11 | pass | pass | setvar obj.attr = 42 (setattr) |
12 | pass | pass | setvar f()[2] = 42 (setitem) |
13 | pass | pass | duplicate var def results in fatal error |
14 | pass | pass | setvar modified local or global scope |
15 | FAIL | FAIL | setref (not implemented) |
details | details | ||
16 | pass | pass | circular dict |
17 | pass | pass | circular list |
34 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 15 setref (not implemented) [osh stdout] Expected 'x=XX\nx=YY\n', got 'x=XX\n' [osh status] Expected 0, got 1 stdout: x=XXstderr: setref out = 'YY' ^~~~~~ [ stdin ]:2: fatal: setref isn't implemented |
osh_ALT | 15 setref (not implemented) [osh_ALT stdout] Expected 'x=XX\nx=YY\n', got 'x=XX\n' [osh_ALT status] Expected 0, got 1 stdout: x=XXstderr: setref out = 'YY' ^~~~~~ [ stdin ]:2: fatal: setref isn't implemented |