Results for ysh-object.test.sh

statusysh
pass 12
FAIL 1
total13
caseyshdescription
0pass Object() creates prototype chain
1pass prototype()
2pass propView()
3pass Mutating method lookup with ->
4pass Mutating method must be up the prototype chain, not on the object
5pass Copy to Dict with dict(), and mutate
6pass setvar obj.attr = and += and ...
7pass obj['attr'] not allowed (for now)
8FAIL setvar obj['attr'] = 3 ?
details
9pass can't encode objects as JSON
10pass Can all builtin methods with s.upper()
11pass invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t
12pass Object with longer prototype chain
12 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

ysh8 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: