Results for ysh-object.test.sh

statusyshysh-cpp
pass 77
FAIL 22
total99
caseyshysh-cppdescription
0pass pass Object() creates prototype chain
1pass pass prototype()
2pass pass attributes()
3pass pass Copy to Dict with dict(), and mutate
4pass pass setvar obj.attr = and += and ...
5pass pass can't encode objects as JSON
6FAIL FAIL pretty printing of cycles
detailsdetails
7pass pass Can all builtin methods with s.upper()
8FAIL FAIL Dict.keys(d), Dict.values(d), Dict.get(d, key)
detailsdetails
14 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

ysh6 pretty printing of cycles

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

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

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

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

[ysh-cpp status] Expected 0, got 1

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