spec test index / oilshell.org
status | ysh | ysh_ALT | |
pass | 3 | 3 | |
FAIL | 2 | 2 | |
total | 5 | 5 | |
case | ysh | ysh_ALT | description |
0 | pass | pass | Object() creates prototype chain |
1 | pass | pass | can't encode objects as JSON |
2 | FAIL | FAIL | pretty printing of cycles |
details | details | ||
3 | FAIL | FAIL | setvar obj.attr |
details | details | ||
4 | pass | pass | Can all builtin methods with s.upper() |
6 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 2 failed under osh
ysh | 2 pretty printing of cycles [ysh stdout] Expected '', got '(Dict) {"k":42,"cycle":{ --> 0x7faa5d90c5a8 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7faa5d90c5a8 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7faa5d90c5a8 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x7faa5d90c5a8 }} (Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7faa5d90c5a8 }}} (Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7faa5d90c5a8 }}}stderr: |
ysh_ALT | 2 pretty printing of cycles [ysh_ALT stdout] Expected '', got '(Dict) {"k":42,"cycle":{ --> 0x7fd5109e8748 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fd5109e8748 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fd5109e8748 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x7fd5109e8748 }} (Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fd5109e8748 }}} (Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fd5109e8748 }}}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 |
ysh_ALT | 3 setvar obj.attr [ysh_ALT 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 |