Results for ysh-expr.test.sh

statusosh
pass 45
total45
caseoshdescription
0pass command sub $(echo hi)
1pass shell array %(a 'b c')
2pass empty array and simple_word_eval (regression test)
3pass Empty array and assignment builtin (regression)
4pass Shell arrays support tilde detection, static globbing, brace detection
5pass Set $HOME using 'var' (i.e. Oil string var in word evaluator)
6pass Use shell var in Oil expression
7pass Length doesn't apply to BashArray
8pass $[len(x)] inside strings
9pass Func with multiple args in multiple contexts
10pass Trailing Comma in Param list
11pass nested expr contexts
12pass YSH var used with shell arithmetic
13pass Parse { var x = 42 }
14pass double quoted
15pass double quoted respects strict_array
16pass simple var sub $name $0 $1 $? etc.
17pass braced var sub ${x:-default}
18pass braced var sub respects strict_array
19pass null / true / false
20pass Integer literals
21pass Integer literals with underscores
22pass Backslash char literal (is an integer)
23pass \u{3bc} is char literal
24pass Exponentiation with **
25pass Float Division
26pass Integer Division (rounds toward zero)
27pass % operator is remainder
28pass Bitwise logical
29pass Shift operators
30pass multiline strings, list, tuple syntax for list, etc.
31pass multiline dict
32pass multiline array and command sub (only here docs disallowed)
33pass obj->method()
34pass obj->method does NOT give you a bound method
35pass d.key
36pass a ++ b for string/list concatenation
37pass s ~~ glob and s !~~ glob
38pass Type Errors
39pass can't use ++ on integers
40pass can't do mystr ++ mylist
41pass expression literals
42pass expression literals, evaluation failure
43pass expression literals, lazy evaluation
44pass expression literals, sugar for strings
45 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped