Results for ysh-expr.test.sh

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

osh27 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)
osh_ALT27 Float Literals with _ (requires re2c refinement)

[osh_ALT stdout] Expected 'less\ngreat\n', got ''
[osh_ALT 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)