Results for ysh-expr.test.sh

statusosh
pass 30
FAIL 1
total31
caseoshdescription
0pass command sub $(echo hi)
1pass Set $HOME using 'var' (i.e. YSH string var in word evaluator)
2pass Use shell var in YSH expression
3pass Length doesn't apply to BashArray
4pass $[len(x)] inside strings
5pass Func with multiple args in multiple contexts
6pass Trailing Comma in Param list
7pass nested expr contexts
8pass YSH var used with shell arithmetic
9pass Parse { var x = 42 }
10pass double quoted
11pass double quoted respects strict_array
12pass simple var sub $name $0 $1 $? etc.
13pass braced var sub ${x:-default}
14pass braced var sub respects strict_array
15pass null / true / false
16pass multiline dict
17pass multiline array and command sub (only here docs disallowed)
18pass obj=>method() - remove?
19pass s->upper does NOT work, should be s.upper() or =>
20pass d.key
21pass a ++ b for string/list concatenation
22pass s ~~ glob and s !~~ glob
23FAIL Type Errors
details
24pass can't use ++ on integers
25pass can't do mystr ++ mylist
26pass expression literals
27pass No list comprehension in ^[]
28pass expression literals, evaluation failure
29pass expression literals, lazy evaluation
30pass expression literals, sugar for strings
30 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh23 Type Errors

[osh stdout] Expected '3\n3\n3\n3\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo $[_error.code]
               ^
[ stdin ]:6: Unexpected token while parsing arithmetic: '.'