spec test index / oilshell.org
status | ysh | |
pass | 13 | |
FAIL | 1 | |
total | 14 | |
case | ysh | description |
0 | pass | New Obj API |
1 | pass | Object() creates prototype chain |
2 | pass | prototype() |
3 | pass | propView() |
4 | pass | Mutating method lookup with -> |
5 | pass | Mutating method must be up the prototype chain, not on the object |
6 | pass | Copy to Dict with dict(), and mutate |
7 | pass | setvar obj.attr = and += and ... |
8 | pass | obj['attr'] not allowed (for now) |
9 | FAIL | setvar obj['attr'] = 3 ? |
details | ||
10 | pass | can't encode objects as JSON |
11 | pass | Can all builtin methods with s.upper() |
12 | pass | invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t |
13 | pass | Object with longer prototype chain |
13 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
ysh | 9 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: |