| status | osh | |
| pass | 6 | |
| FAIL | 6 | |
| total | 12 | |
| case | osh | description |
| 0 | FAIL | bool() conversion |
| details | ||
| 1 | pass | bool() more |
| 2 | FAIL | int() conversion |
| details | ||
| 3 | pass | int() more |
| 4 | FAIL | float() conversion |
| details | ||
| 5 | pass | float() overflow / underflow |
| 6 | FAIL | str() conversion |
| details | ||
| 7 | pass | dict() converts from BashAssoc to Dict |
| 8 | FAIL | dict() does shallow copy |
| details | ||
| 9 | FAIL | list() does shallow copy |
| details | ||
| 10 | pass | list() from Dict |
| 11 | pass | list() from range |
6 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped 6 failed under osh
| osh | 0 bool() conversion [osh stdout] Expected 'true\nfalse\ntrue\ntrue\ntrue\nfalse\nfalse\nfalse\ntrue\ntrue\ntrue\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo "$[bool(1234)]"
^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 2 int() conversion [osh stdout] Expected '1234\n1234\n1\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo "$[int(1234)]"
^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 4 float() conversion [osh stdout] Expected '1234.0\n1.234\n2.345\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo "$[float(1234)]"
^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 6 str() conversion [osh stdout] Expected '1234\n1.234\nfoo\n\ntrue\nnull\n[[:digit:]]+\n' Got '' [osh status] Expected 3 Got 2 stdout: stderr: echo $[str(1234)]
^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 8 dict() does shallow copy [osh stdout] Expected 'true\nfalse\ntrue\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo $['b' in d] # d2 should be an alias for d
^~
[ stdin ]:4: Unexpected token after arithmetic expression (Id.Word_Compound != Id.Arith_RBracket)
|
| osh | 9 list() does shallow copy [osh stdout] Expected '2\n2\n3\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo $[len(l)] # d2 should be an alias for d
^
[ stdin ]:4: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|