Results for ysh-object.test.sh

statusyshysh_ALT
pass 55
FAIL 33
total88
caseyshysh_ALTdescription
0pass pass Object() creates prototype chain
1FAIL FAIL prototype()
detailsdetails
2pass pass Copy to Dict with dict(), and mutate
3pass pass setvar obj.attr = and += and ...
4pass pass can't encode objects as JSON
5FAIL FAIL pretty printing of cycles
detailsdetails
6pass pass Can all builtin methods with s.upper()
7FAIL FAIL Dict.keys(d), Dict.values(d), Dict.get(d, key)
detailsdetails
10 passed, 0 OK, 0 not implemented, 0 BUG, 6 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:
ysh_ALT1 prototype()

[ysh_ALT 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":{ --> 0x7f227edcf3f8 }}\n(Obj) {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f227edcf3f8 }}}\n(Obj) {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f227edcf3f8 }}}\n'

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

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

stdout:
(Dict)   {"k":42,"cycle":{ --> 0x7f2b64219908 }}
(Obj)   {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f2b64219908 }}}
(Obj)   {"z":99} ==> {"k":42,"cycle":{"k":42,"cycle":{ --> 0x7f2b64219908 }}}
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'
ysh_ALT7 Dict.keys(d), Dict.values(d), Dict.get(d, key)

[ysh_ALT status] Expected 0, got 1

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