spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 9 | 9 | |
FAIL | 5 | 5 | |
total | 14 | 14 | |
case | osh | osh_ALT | description |
0 | pass | pass | Int |
1 | pass | pass | Float |
2 | pass | pass | Null |
3 | pass | pass | Bool |
4 | pass | pass | String |
5 | FAIL | FAIL | Range |
details | details | ||
6 | FAIL | FAIL | Eggex (reference type) |
details | details | ||
7 | FAIL | FAIL | SparseArray, new representation for bash array |
details | details | ||
8 | FAIL | FAIL | BashArray, short |
details | details | ||
9 | pass | pass | BashArray, long |
10 | FAIL | FAIL | BashAssoc, short |
details | details | ||
11 | pass | pass | BashAssoc, long |
12 | pass | pass | Simple Cycles |
13 | pass | pass | Complex Cycles |
18 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped 5 failed under osh
osh | 5 Range [osh stdout] Expected '(Range 1 .. 100)\n(Dict) {k: (Range 1 .. 100)}\n\n<Range 0x--->\n(Dict) {"k":<Range 0x--->}\n' Got ' pp (x)\n ^\n[ stdin ]:3: (Range 1 .. 100)\n pp ({k: x})\n ^\n[ stdin ]:6: (Dict) {k: (Range 1 .. 100)}\n\n<Range 0x--->\n(Dict) {"k":<Range 0x--->}\n' stdout: pp (x) ^ [ stdin ]:3: (Range 1 .. 100) pp ({k: x}) ^ [ stdin ]:6: (Dict) {k: (Range 1 .. 100)} <Range 0x---> (Dict) {"k":<Range 0x--->}stderr: |
osh_ALT | 5 Range [osh_ALT stdout] Expected '(Range 1 .. 100)\n(Dict) {k: (Range 1 .. 100)}\n\n<Range 0x--->\n(Dict) {"k":<Range 0x--->}\n' Got ' pp (x)\n ^\n[ stdin ]:3: (Range 1 .. 100)\n pp ({k: x})\n ^\n[ stdin ]:6: (Dict) {k: (Range 1 .. 100)}\n\n<Range 0x--->\n(Dict) {"k":<Range 0x--->}\n' stdout: pp (x) ^ [ stdin ]:3: (Range 1 .. 100) pp ({k: x}) ^ [ stdin ]:6: (Dict) {k: (Range 1 .. 100)} <Range 0x---> (Dict) {"k":<Range 0x--->}stderr: |
osh | 6 Eggex (reference type) [osh stdout] Expected '<Eggex 0x--->\n(Dict) {k: <Eggex 0x--->}\n\n<Eggex 0x--->\n(Dict) {"k":<Eggex 0x--->}\n' Got ' pp (pat) | remove-addr\n ^\n[ stdin ]:7: <Eggex 0x--->\n pp ({k: pat}) | remove-addr\n ^\n[ stdin ]:9: (Dict) {k: <Eggex 0x--->}\n\n<Eggex 0x--->\n(Dict) {"k":<Eggex 0x--->}\n' stdout: pp (pat) | remove-addr ^ [ stdin ]:7: <Eggex 0x---> pp ({k: pat}) | remove-addr ^ [ stdin ]:9: (Dict) {k: <Eggex 0x--->} <Eggex 0x---> (Dict) {"k":<Eggex 0x--->}stderr: |
osh_ALT | 6 Eggex (reference type) [osh_ALT stdout] Expected '<Eggex 0x--->\n(Dict) {k: <Eggex 0x--->}\n\n<Eggex 0x--->\n(Dict) {"k":<Eggex 0x--->}\n' Got ' pp (pat) | remove-addr\n ^\n[ stdin ]:7: <Eggex 0x--->\n pp ({k: pat}) | remove-addr\n ^\n[ stdin ]:9: (Dict) {k: <Eggex 0x--->}\n\n<Eggex 0x--->\n(Dict) {"k":<Eggex 0x--->}\n' stdout: pp (pat) | remove-addr ^ [ stdin ]:7: <Eggex 0x---> pp ({k: pat}) | remove-addr ^ [ stdin ]:9: (Dict) {k: <Eggex 0x--->} <Eggex 0x---> (Dict) {"k":<Eggex 0x--->}stderr: |
osh | 7 SparseArray, new representation for bash array [osh stdout] Expected '(SparseArray)\n(SparseArray [0]=\'hello\' [5]=\'5\')\n\n(Dict) {k: (SparseArray)}\n(Dict) {k: (SparseArray [0]=\'hello\' [5]=\'5\')}\n\n{"type":"SparseArray","data":{}}\n{"type":"SparseArray","data":{"0":"hello","5":"5"}}\n\n(Dict) {"k":{"type":"SparseArray","data":{}}}\n(Dict) {"k":{"type":"SparseArray","data":{"0":"hello","5":"5"}}}\n' Got ' pp (empty)\n ^\n[ stdin ]:8: (SparseArray)\n pp (array_1)\n ^\n[ stdin ]:9: (SparseArray [0]=\'hello\' [5]=\'5\')\n\n pp ({k: empty})\n ^\n[ stdin ]:12: (Dict) {k: (SparseArray)}\n pp ({k: array_1})\n ^\n[ stdin ]:13: (Dict) {k: (SparseArray [0]=\'hello\' [5]=\'5\')}\n\n{"type":"SparseArray","data":{}}\n{"type":"SparseArray","data":{"0":"hello","5":"5"}}\n\n(Dict) {"k":{"type":"SparseArray","data":{}}}\n(Dict) {"k":{"type":"SparseArray","data":{"0":"hello","5":"5"}}}\n' stdout: pp (empty) ^ [ stdin ]:8: (SparseArray) pp (array_1) ^ [ stdin ]:9: (SparseArray [0]='hello' [5]='5') pp ({k: empty}) ^ [ stdin ]:12: (Dict) {k: (SparseArray)} pp ({k: array_1}) ^ [ stdin ]:13: (Dict) {k: (SparseArray [0]='hello' [5]='5')} {"type":"SparseArray","data":{}} {"type":"SparseArray","data":{"0":"hello","5":"5"}} (Dict) {"k":{"type":"SparseArray","data":{}}} (Dict) {"k":{"type":"SparseArray","data":{"0":"hello","5":"5"}}}stderr: |
osh_ALT | 7 SparseArray, new representation for bash array [osh_ALT stdout] Expected '(SparseArray)\n(SparseArray [0]=\'hello\' [5]=\'5\')\n\n(Dict) {k: (SparseArray)}\n(Dict) {k: (SparseArray [0]=\'hello\' [5]=\'5\')}\n\n{"type":"SparseArray","data":{}}\n{"type":"SparseArray","data":{"0":"hello","5":"5"}}\n\n(Dict) {"k":{"type":"SparseArray","data":{}}}\n(Dict) {"k":{"type":"SparseArray","data":{"0":"hello","5":"5"}}}\n' Got ' pp (empty)\n ^\n[ stdin ]:8: (SparseArray)\n pp (array_1)\n ^\n[ stdin ]:9: (SparseArray [0]=\'hello\' [5]=\'5\')\n\n pp ({k: empty})\n ^\n[ stdin ]:12: (Dict) {k: (SparseArray)}\n pp ({k: array_1})\n ^\n[ stdin ]:13: (Dict) {k: (SparseArray [0]=\'hello\' [5]=\'5\')}\n\n{"type":"SparseArray","data":{}}\n{"type":"SparseArray","data":{"0":"hello","5":"5"}}\n\n(Dict) {"k":{"type":"SparseArray","data":{}}}\n(Dict) {"k":{"type":"SparseArray","data":{"0":"hello","5":"5"}}}\n' stdout: pp (empty) ^ [ stdin ]:8: (SparseArray) pp (array_1) ^ [ stdin ]:9: (SparseArray [0]='hello' [5]='5') pp ({k: empty}) ^ [ stdin ]:12: (Dict) {k: (SparseArray)} pp ({k: array_1}) ^ [ stdin ]:13: (Dict) {k: (SparseArray [0]='hello' [5]='5')} {"type":"SparseArray","data":{}} {"type":"SparseArray","data":{"0":"hello","5":"5"}} (Dict) {"k":{"type":"SparseArray","data":{}}} (Dict) {"k":{"type":"SparseArray","data":{"0":"hello","5":"5"}}}stderr: |
osh | 8 BashArray, short [osh stdout] Expected '(BashArray)\n(BashArray \'hello\')\n\n(Dict) {k: (BashArray)}\n(Dict) {k: (BashArray \'hello\')}\n\n{"type":"BashArray","data":{}}\n{"type":"BashArray","data":{"0":"hello"}}\n\n(Dict) {"k":{"type":"BashArray","data":{}}}\n(Dict) {"k":{"type":"BashArray","data":{"0":"hello"}}}\n' Got ' pp (empty)\n ^\n[ stdin ]:4: (BashArray)\n pp (array_1)\n ^\n[ stdin ]:5: (BashArray \'hello\')\n\n pp ({k: empty})\n ^\n[ stdin ]:8: (Dict) {k: (BashArray)}\n pp ({k: array_1})\n ^\n[ stdin ]:9: (Dict) {k: (BashArray \'hello\')}\n\n{"type":"BashArray","data":{}}\n{"type":"BashArray","data":{"0":"hello"}}\n\n(Dict) {"k":{"type":"BashArray","data":{}}}\n(Dict) {"k":{"type":"BashArray","data":{"0":"hello"}}}\n' stdout: pp (empty) ^ [ stdin ]:4: (BashArray) pp (array_1) ^ [ stdin ]:5: (BashArray 'hello') pp ({k: empty}) ^ [ stdin ]:8: (Dict) {k: (BashArray)} pp ({k: array_1}) ^ [ stdin ]:9: (Dict) {k: (BashArray 'hello')} {"type":"BashArray","data":{}} {"type":"BashArray","data":{"0":"hello"}} (Dict) {"k":{"type":"BashArray","data":{}}} (Dict) {"k":{"type":"BashArray","data":{"0":"hello"}}}stderr: |
osh_ALT | 8 BashArray, short [osh_ALT stdout] Expected '(BashArray)\n(BashArray \'hello\')\n\n(Dict) {k: (BashArray)}\n(Dict) {k: (BashArray \'hello\')}\n\n{"type":"BashArray","data":{}}\n{"type":"BashArray","data":{"0":"hello"}}\n\n(Dict) {"k":{"type":"BashArray","data":{}}}\n(Dict) {"k":{"type":"BashArray","data":{"0":"hello"}}}\n' Got ' pp (empty)\n ^\n[ stdin ]:4: (BashArray)\n pp (array_1)\n ^\n[ stdin ]:5: (BashArray \'hello\')\n\n pp ({k: empty})\n ^\n[ stdin ]:8: (Dict) {k: (BashArray)}\n pp ({k: array_1})\n ^\n[ stdin ]:9: (Dict) {k: (BashArray \'hello\')}\n\n{"type":"BashArray","data":{}}\n{"type":"BashArray","data":{"0":"hello"}}\n\n(Dict) {"k":{"type":"BashArray","data":{}}}\n(Dict) {"k":{"type":"BashArray","data":{"0":"hello"}}}\n' stdout: pp (empty) ^ [ stdin ]:4: (BashArray) pp (array_1) ^ [ stdin ]:5: (BashArray 'hello') pp ({k: empty}) ^ [ stdin ]:8: (Dict) {k: (BashArray)} pp ({k: array_1}) ^ [ stdin ]:9: (Dict) {k: (BashArray 'hello')} {"type":"BashArray","data":{}} {"type":"BashArray","data":{"0":"hello"}} (Dict) {"k":{"type":"BashArray","data":{}}} (Dict) {"k":{"type":"BashArray","data":{"0":"hello"}}}stderr: |
osh | 10 BashAssoc, short [osh stdout] Expected '(BashAssoc)\n(BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')\n\n(Dict) {k: (BashAssoc)}\n(Dict) {k: (BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')}\n\n{"type":"BashAssoc","data":{}}\n{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}\n\n(Dict) {"k":{"type":"BashAssoc","data":{}}}\n(Dict) {"k":{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}}\n' Got ' pp (empty)\n ^\n[ stdin ]:4: (BashAssoc)\n pp (assoc)\n ^\n[ stdin ]:5: (BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')\n\n pp ({k:empty})\n ^\n[ stdin ]:8: (Dict) {k: (BashAssoc)}\n pp ({k:assoc})\n ^\n[ stdin ]:9: (Dict) {k: (BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')}\n\n{"type":"BashAssoc","data":{}}\n{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}\n\n(Dict) {"k":{"type":"BashAssoc","data":{}}}\n(Dict) {"k":{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}}\n' stdout: pp (empty) ^ [ stdin ]:4: (BashAssoc) pp (assoc) ^ [ stdin ]:5: (BashAssoc ['k']=$'foo \u0001μ') pp ({k:empty}) ^ [ stdin ]:8: (Dict) {k: (BashAssoc)} pp ({k:assoc}) ^ [ stdin ]:9: (Dict) {k: (BashAssoc ['k']=$'foo \u0001μ')} {"type":"BashAssoc","data":{}} {"type":"BashAssoc","data":{"k":"foo \u0001μ"}} (Dict) {"k":{"type":"BashAssoc","data":{}}} (Dict) {"k":{"type":"BashAssoc","data":{"k":"foo \u0001μ"}}}stderr: |
osh_ALT | 10 BashAssoc, short [osh_ALT stdout] Expected '(BashAssoc)\n(BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')\n\n(Dict) {k: (BashAssoc)}\n(Dict) {k: (BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')}\n\n{"type":"BashAssoc","data":{}}\n{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}\n\n(Dict) {"k":{"type":"BashAssoc","data":{}}}\n(Dict) {"k":{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}}\n' Got ' pp (empty)\n ^\n[ stdin ]:4: (BashAssoc)\n pp (assoc)\n ^\n[ stdin ]:5: (BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')\n\n pp ({k:empty})\n ^\n[ stdin ]:8: (Dict) {k: (BashAssoc)}\n pp ({k:assoc})\n ^\n[ stdin ]:9: (Dict) {k: (BashAssoc [\'k\']=$\'foo \\u0001\xce\xbc\')}\n\n{"type":"BashAssoc","data":{}}\n{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}\n\n(Dict) {"k":{"type":"BashAssoc","data":{}}}\n(Dict) {"k":{"type":"BashAssoc","data":{"k":"foo \\u0001\xce\xbc"}}}\n' stdout: pp (empty) ^ [ stdin ]:4: (BashAssoc) pp (assoc) ^ [ stdin ]:5: (BashAssoc ['k']=$'foo \u0001μ') pp ({k:empty}) ^ [ stdin ]:8: (Dict) {k: (BashAssoc)} pp ({k:assoc}) ^ [ stdin ]:9: (Dict) {k: (BashAssoc ['k']=$'foo \u0001μ')} {"type":"BashAssoc","data":{}} {"type":"BashAssoc","data":{"k":"foo \u0001μ"}} (Dict) {"k":{"type":"BashAssoc","data":{}}} (Dict) {"k":{"type":"BashAssoc","data":{"k":"foo \u0001μ"}}}stderr: |