spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 12 | 12 | |
FAIL | 1 | 1 | |
total | 13 | 13 | |
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 | obj['attr'] not allowed (for now) |
8 | FAIL | FAIL | setvar obj['attr'] = 3 ? |
details | details | ||
9 | pass | pass | can't encode objects as JSON |
10 | pass | pass | Can all builtin methods with s.upper() |
11 | pass | pass | invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t |
12 | pass | pass | Object with longer prototype chain |
24 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
ysh | 8 setvar obj['attr'] = 3 ? [ysh stdout] Expected '', got '(Obj) ("x":99,"y":4)\n' [ysh status] Expected 3, got 0 stdout: (Obj) ("x":99,"y":4)stderr: |
ysh-cpp | 8 setvar obj['attr'] = 3 ? [ysh-cpp stdout] Expected '', got '(Obj) ("x":99,"y":4)\n' [ysh-cpp status] Expected 3, got 0 stdout: (Obj) ("x":99,"y":4)stderr: |