Results for oil-expr.test.sh

statusosh
pass 52
FAIL 1
total53
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 augmented assignment doesn't work on shell arrays
6pass Set $HOME using 'var' (i.e. Oil string var in word evaluator)
7pass Use shell var in Oil expression
8pass Length in two different contexts
9pass $len(x) inside strings
10pass Func with multiple args in multiple contexts
11pass Trailing Comma in Param list
12pass nested expr contexts
13pass Test value.Obj inside shell arithmetic
14pass Parse { var x = 42 }
15pass double quoted
16pass double quoted respects strict_array
17pass simple var sub $name $0 $1 $? etc.
18pass braced var sub ${x:-default}
19pass braced var sub respects strict_array
20pass null / true / false
21pass Integer literals
22pass Integer literals with underscores
23pass Backslash char literal (is an integer)
24pass \u{3bc} is char literal
25pass Pound char literal (is an integer)
26pass The literal #''' isn't accepted (use \' instead)
27pass Float Literals
28FAIL Float Literals with _ (requires re2c refinement)
details
29pass Tuples
30pass in, not in
31pass dict with 'bare word' keys
32pass dict with expression keys
33pass dict literal with implicit value
34pass Dict literal with string keys
35pass Bitwise logical
36pass Shift operators
37pass Exponentiation with **
38pass Two Kinds of Division
39pass mod operator
40pass Logical operators
41pass x if b else y
42pass multiline strings, list, tuples, etc.
43pass multiline dict
44pass multiline array and command sub (only here docs disallowed)
45pass obj.attr and obj.method()
46pass obj.method does NOT give you a bound method
47pass d->key
48pass a ++ b for string/list concatenation
49pass s ~~ glob and s !~~ glob
50pass Type Errors
51pass can't use ++ on integers
52pass can't do mystr ++ mylist
52 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

osh28 Float Literals with _ (requires re2c refinement)

[osh stdout] Expected 'less\ngreat\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  var x = 1.2 + 2_3.0e-1  # 3.5
                    ^~~~
[ stdin ]:2: Syntax error in expression (near Id.Expr_Float)