Results for ysh-object.test.sh

statusyshysh-cpp
pass 55
FAIL 33
total88
caseyshysh-cppdescription
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, 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:
ysh-cpp1 prototype()

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

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

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

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