spec test index / oilshell.org
status | ysh | |
pass | 3 | |
FAIL | 2 | |
total | 5 | |
case | ysh | description |
0 | pass | Object() creates prototype chain |
1 | pass | can't encode objects as JSON |
2 | FAIL | pretty printing of cycles |
details | ||
3 | FAIL | setvar obj.attr |
details | ||
4 | pass | Can all builtin methods with s.upper() |
3 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
ysh | 2 pretty printing of cycles [ysh stdout] Expected '', got '(Dict) {"k":42,"cycle":{ --> 0x7f1fc03955a8 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x7f1fc03955a8 }} (Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}} (Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}}stderr: |
ysh | 3 setvar obj.attr [ysh status] Expected 0, got 3 stdout: (Obj) {"x":3,"y":4} ==> {"area":<Func>}stderr: setvar rect1.x = 99 ^~~~~~ [ stdin ]:11: fatal: obj[index] expected List or Dict, got Obj |