Results for ysh-object.test.sh

statusyshysh_ALT
pass 33
FAIL 22
total55
caseyshysh_ALTdescription
0pass pass Object() creates prototype chain
1pass pass can't encode objects as JSON
2FAIL FAIL pretty printing of cycles
detailsdetails
3FAIL FAIL setvar obj.attr
detailsdetails
4pass pass Can all builtin methods with s.upper()
6 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

ysh2 pretty printing of cycles

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

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

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

stdout:
(Dict)   {"k":42,"cycle":{ --> 0x7fd5109e8748 }}
(Obj)   {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fd5109e8748 }}}
(Obj)   {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7fd5109e8748 }}}
stderr:
ysh3 setvar obj.attr

[ysh status] Expected 0, got 3

stdout:
(Obj)   {"x":3,"y":4} ==> {"area":<Func>}
stderr:
  setvar rect1.x = 99
  ^~~~~~
[ stdin ]:11: fatal: obj[index] expected List or Dict, got Obj
ysh_ALT3 setvar obj.attr

[ysh_ALT status] Expected 0, got 3

stdout:
(Obj)   {"x":3,"y":4} ==> {"area":<Func>}
stderr:
  setvar rect1.x = 99
  ^~~~~~
[ stdin ]:11: fatal: obj[index] expected List or Dict, got Obj