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