spec test index / oilshell.org
status | ysh | |
FAIL | 14 | |
total | 14 | |
case | ysh | description |
0 | FAIL | New Obj API |
details | ||
1 | FAIL | Object() creates prototype chain |
details | ||
2 | FAIL | prototype() |
details | ||
3 | FAIL | propView() |
details | ||
4 | FAIL | Mutating method lookup with -> |
details | ||
5 | FAIL | Mutating method must be up the prototype chain, not on the object |
details | ||
6 | FAIL | Copy to Dict with dict(), and mutate |
details | ||
7 | FAIL | setvar obj.attr = and += and ... |
details | ||
8 | FAIL | obj['attr'] not allowed (for now) |
details | ||
9 | FAIL | setvar obj['attr'] = 3 ? |
details | ||
10 | FAIL | can't encode objects as JSON |
details | ||
11 | FAIL | Can all builtin methods with s.upper() |
details | ||
12 | FAIL | invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t |
details | ||
13 | FAIL | 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
ysh | 0 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_ |
ysh | 1 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_ |
ysh | 2 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_ |
ysh | 3 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_ |
ysh | 4 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_ |
ysh | 5 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_ |
ysh | 6 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_ |
ysh | 7 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_ |
ysh | 8 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_ |
ysh | 9 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_ |
ysh | 10 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_ |
ysh | 11 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_ |
ysh | 12 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_ |
ysh | 13 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_ |