Results for ysh-object.test.sh

statusysh
pass 5
FAIL 3
total8
caseyshdescription
0pass Object() creates prototype chain
1FAIL prototype()
details
2pass Copy to Dict with dict(), and mutate
3pass setvar obj.attr = and += and ...
4pass can't encode objects as JSON
5FAIL pretty printing of cycles
details
6pass Can all builtin methods with s.upper()
7FAIL Dict.keys(d), Dict.values(d), Dict.get(d, key)
details
5 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

ysh1 prototype()

[ysh stdout] Expected '', got '(Null) null\n(Null) null\n'

stdout:
(Null)   null
(Null)   null
stderr:
ysh5 pretty printing of cycles

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

stdout:
(Dict)   {"k":42,"cycle":{ --> 0x7f0a1fc393f8 }}
(Obj)   {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f0a1fc393f8 }}}
(Obj)   {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f0a1fc393f8 }}}
stderr:
ysh7 Dict.keys(d), Dict.values(d), Dict.get(d, key)

[ysh status] Expected 0, got 1

stdout:
stderr: 
  pp test_ (Dict.keys(d))
            ^~~~
[ stdin ]:3: fatal: Undefined variable 'Dict'