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