Results for ysh-object.test.sh

statusyshysh_ALT
pass 99
FAIL 22
total1111
caseyshysh_ALTdescription
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()
10FAIL FAIL Dict.keys(d), Dict.values(d), Dict.get(d, key)
detailsdetails
18 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

ysh8 pretty printing of cycles

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

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

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

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