Results for ysh-object.test.sh

statusysh
pass 11
FAIL 1
total12
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 can't encode objects as JSON
8FAIL pretty printing of cycles
details
9pass Can all builtin methods with s.upper()
10pass invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t
11pass Object with longer prototype chain
11 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 pretty printing of cycles

[ysh stdout] Expected '', got '(Dict) {"k":42,"cycle":{ --> 0x7feaf90374d0 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7feaf90374d0 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7feaf90374d0 }}}\n'

stdout:
(Dict)   {"k":42,"cycle":{ --> 0x7feaf90374d0 }}
(Obj)   {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7feaf90374d0 }}}
(Obj)   {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7feaf90374d0 }}}
stderr: