22 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped 9 failed under osh
| osh | 3 Length doesn't apply to BashArray [osh status] Expected 3 Got 2 stdout: shell=5stderr: echo ysh=$[len(x)]
^
[ stdin ]:7: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 4 $[len(x)] inside strings [osh stdout] Expected '-3-\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo -$[len(s)]-
^
[ stdin ]:2: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 7 nested expr contexts [osh stdout] Expected 'len 3\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: var x = $(echo $'len\n' $[len(s)])
^
[ stdin ]:3: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 16 multiline dict [osh stdout] Expected 'mydict=2\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo mydict=$[len(mydict)]
^
[ stdin ]:4: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 17 multiline array and command sub (only here docs disallowed) [osh stdout] Expected 'array=3\ncomsub=6\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo array=$[len(array)]
^
[ stdin ]:6: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 21 a ++ b for string/list concatenation [osh stdout] Expected 'string abcde\nlist len=3\n---\nStr Int 3\nList Int 3\nInt Str 3\n' Got 'string abcde\n' [osh status] Expected 0 Got 2 stdout: string abcdestderr: echo list len=$[len(c)]
^
[ stdin ]:12: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 26 expression literals [osh stdout] Expected 'type=Expr\n3\nfalse\ntrue\n(List) [3,4]\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo type=$[type(e)]
^
[ stdin ]:3: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
|
| osh | 29 expression literals, lazy evaluation [osh stdout] Expected 'result=1\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo result=$[io->evalExpr(e)]
^
[ stdin ]:5: Token can't be used in prefix position
|
| osh | 30 expression literals, sugar for strings [osh stdout] Expected 'result=x is 1\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: echo result=$[io->evalExpr(e)]
^
[ stdin ]:5: Token can't be used in prefix position
|