Results for ysh-object.test.sh

statusysh
FAIL 14
total14
caseyshdescription
0FAIL New Obj API
details
1FAIL Object() creates prototype chain
details
2FAIL prototype()
details
3FAIL propView()
details
4FAIL Mutating method lookup with ->
details
5FAIL Mutating method must be up the prototype chain, not on the object
details
6FAIL Copy to Dict with dict(), and mutate
details
7FAIL setvar obj.attr = and += and ...
details
8FAIL obj['attr'] not allowed (for now)
details
9FAIL setvar obj['attr'] = 3 ?
details
10FAIL can't encode objects as JSON
details
11FAIL Can all builtin methods with s.upper()
details
12FAIL invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t
details
13FAIL Object with longer prototype chain
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped
14 failed under osh

Details on runs that didn't PASS

ysh0 New Obj API

[ysh stdout] Expected '(Obj) ("x":4)\n0\n(Dict) {"x":4}\n0\n(Null) null\n0\n(Obj) ("y":5)\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh1 Object() creates prototype chain

[ysh stdout] Expected '(List) [3,4]\narea1 = 12\n(List) [10,20]\narea2 = 200\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh2 prototype()

[ysh stdout] Expected '(Null) null\n(Obj) ("area":<Func>)\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh3 propView()

[ysh stdout] Expected '(Dict) {"x":3,"y":4}\n(Dict) {"x":99,"y":4}\n' Got ''
[ysh status] Expected 3, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh4 Mutating method lookup with ->

[ysh stdout] Expected '5\n8\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh5 Mutating method must be up the prototype chain, not on the object

[ysh status] Expected 3, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh6 Copy to Dict with dict(), and mutate

[ysh stdout] Expected '(Obj) ("x":3,"y":4)\n(Dict) {"x":3,"y":4}\n(Obj) ("x":99,"y":4)\n(Dict) {"x":100,"y":4}\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh7 setvar obj.attr = and += and ...

[ysh stdout] Expected '(Obj) ("x":3,"y":4)\n(Obj) ("x":3,"y":99)\n(Obj) ("x":3,"y":102)\n(Obj) ("x":15,"y":102)\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh8 obj['attr'] not allowed (for now)

[ysh status] Expected 3, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh9 setvar obj['attr'] = 3 ?

[ysh status] Expected 3, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh10 can't encode objects as JSON

[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh11 Can all builtin methods with s.upper()

[ysh stdout] Expected '(Str) "FOO"\n(Str) "--foo"\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh12 invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t

[ysh stdout] Expected '(List) ["a",{"x":5,"y":6}]\n\ninvokable\n\nno prototype\nno __invoke__ method in prototype\n__invoke__ of wrong type\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh13 Object with longer prototype chain

[ysh stdout] Expected '(Obj) ("foo":1,"bar":2,"x":3) --> ("foo":42,"bar":[1,2]) --> ("foo":"zz")\n(Obj) (foo: 1, bar: 2, x: 3) --> (foo: 42, bar: [1, 2]) --> (foo: \'zz\')\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_