spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 10 | 10 | |
FAIL | 2 | 2 | |
total | 12 | 12 | |
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 | pass | pass | invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t |
11 | FAIL | FAIL | Use Invokable Obj |
details | details |
20 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":{ --> 0x7f74af5abc68 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f74af5abc68 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f74af5abc68 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x7f74af5abc68 }} (Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f74af5abc68 }}} (Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f74af5abc68 }}}stderr: |
ysh-cpp | 8 pretty printing of cycles [ysh-cpp stdout] Expected '', got '(Dict) {"k":42,"cycle":{ --> 0x1941 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1941 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1941 }}}\n' stdout: (Dict) {"k":42,"cycle":{ --> 0x1941 }} (Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1941 }}} (Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x1941 }}}stderr: |
ysh | 11 Use Invokable Obj [ysh stdout] Expected '', got 'sum = 11\n(Dict) {"x":5,"y":6}\n(List) ["a","b",42,43]\nsum = 197\n(Obj) {"x":98,"y":99} ==> {"__invoke__":<Proc>}\n(List) ["a","b",42,43]\n' stdout: sum = 11 (Dict) {"x":5,"y":6} (List) ["a","b",42,43] sum = 197 (Obj) {"x":98,"y":99} ==> {"__invoke__":<Proc>} (List) ["a","b",42,43]stderr: |
ysh-cpp | 11 Use Invokable Obj [ysh-cpp stdout] Expected '', got 'sum = 11\n(Dict) {"x":5,"y":6}\n(List) ["a","b",42,43]\nsum = 197\n(Obj) {"x":98,"y":99} ==> {"__invoke__":<Proc>}\n(List) ["a","b",42,43]\n' stdout: sum = 11 (Dict) {"x":5,"y":6} (List) ["a","b",42,43] sum = 197 (Obj) {"x":98,"y":99} ==> {"__invoke__":<Proc>} (List) ["a","b",42,43]stderr: |