Results for ysh-expr.test.sh

statusosh
pass 31
total31
caseoshdescription
0pass command sub $(echo hi)
1pass Set $HOME using 'var' (i.e. Oil string var in word evaluator)
2pass Use shell var in Oil 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
23pass Type Errors
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
31 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped