spec test index / oilshell.org
status | ysh | |
pass | 9 | |
FAIL | 2 | |
total | 11 | |
case | ysh | description |
0 | pass | Object() creates prototype chain |
1 | pass | prototype() |
2 | pass | propView() |
3 | pass | Mutating method lookup with -> |
4 | pass | Mutating method must be up the prototype chain, not on the object |
5 | pass | Copy to Dict with dict(), and mutate |
6 | pass | setvar obj.attr = and += and ... |
7 | pass | can't encode objects as JSON |
8 | FAIL | pretty printing of cycles |
details | ||
9 | pass | Can all builtin methods with s.upper() |
10 | FAIL | Dict.keys(d), Dict.values(d), Dict.get(d, key) |
details |
9 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
ysh | 8 pretty printing of cycles [ysh stdout] Expected '', got '(Dict) {"k":42,"cycle":{ --> 0x7f15893ad440 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f15893ad440 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f15893ad440 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x7f15893ad440 }} (Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f15893ad440 }}} (Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f15893ad440 }}}stderr: |
ysh | 10 Dict.keys(d), Dict.values(d), Dict.get(d, key) [ysh status] Expected 0, got 1 stdout: stderr: pp test_ (Dict.keys(d)) ^~~~ [ stdin ]:3: fatal: Undefined variable 'Dict' |