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