Results for ysh-object.test.sh

statusyshysh-cpp
pass 1111
FAIL 11
total1212
caseyshysh-cppdescription
0pass pass Object() creates prototype chain
1pass pass prototype()
2pass pass propView()
3pass pass Mutating method lookup with ->
4pass pass Mutating method must be up the prototype chain, not on the object
5pass pass Copy to Dict with dict(), and mutate
6pass pass setvar obj.attr = and += and ...
7pass pass can't encode objects as JSON
8FAIL FAIL pretty printing of cycles
detailsdetails
9pass pass Can all builtin methods with s.upper()
10pass pass invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t
11pass pass Object with longer prototype chain
22 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":{ --> 0x7f8015a833f8 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f8015a833f8 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f8015a833f8 }}}\n'

stdout:
(Dict)   {"k":42,"cycle":{ --> 0x7f8015a833f8 }}
(Obj)   {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f8015a833f8 }}}
(Obj)   {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f8015a833f8 }}}
stderr:
ysh-cpp8 pretty printing of cycles

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

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