Results for ysh-object.test.sh

statusysh
pass 3
FAIL 2
total5
caseyshdescription
0pass Object() creates prototype chain
1pass can't encode objects as JSON
2FAIL pretty printing of cycles
details
3FAIL setvar obj.attr
details
4pass Can all builtin methods with s.upper()
3 passed, 0 OK, 0 not implemented, 0 BUG, 2 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":{ --> 0x7f1fc03955a8 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}}\n'

stdout:
(Dict)   {"k":42,"cycle":{ --> 0x7f1fc03955a8 }}
(Obj)   {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}}
(Obj)   {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f1fc03955a8 }}}
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