spec test index / oilshell.org
| status | ysh | ysh-cpp | |
| pass | 3 | 3 | |
| FAIL | 2 | 2 | |
| total | 5 | 5 | |
| case | ysh | ysh-cpp | 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, 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":{ --> 0x7fbe7d24c5a8 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fbe7d24c5a8 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fbe7d24c5a8 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x7fbe7d24c5a8 }}
(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fbe7d24c5a8 }}}
(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fbe7d24c5a8 }}}
stderr: |
| ysh-cpp | 2 pretty printing of cycles [ysh-cpp stdout] Expected '', got '(Dict) {"k":42,"cycle":{ --> 0x1871 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1871 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1871 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x1871 }}
(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1871 }}}
(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1871 }}}
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-cpp | 3 setvar obj.attr [ysh-cpp 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 |