Results for ysh-expr.test.sh

statusosh
pass 48
FAIL 1
total49
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 in two different contexts
8pass $[len(x)] inside strings
9pass Func with multiple args in multiple contexts
10pass Trailing Comma in Param list
11pass nested expr contexts
12pass Test value.Obj inside 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 Pound char literal (is an integer)
25pass The literal #''' isn't accepted (use \' instead)
26pass Float Literals
27FAIL Float Literals with _ (requires re2c refinement)
details
28pass in, not in
29pass dict with 'bare word' keys
30pass dict with expression keys
31pass dict literal with implicit value
32pass Dict literal with string keys
33pass Bitwise logical
34pass Shift operators
35pass Exponentiation with **
36pass Two Kinds of Division
37pass mod operator
38pass multiline strings, list, tuple syntax for list, etc.
39pass multiline dict
40pass multiline array and command sub (only here docs disallowed)
41pass obj->method()
42pass obj->method does NOT give you a bound method
43pass d.key
44pass a ++ b for string/list concatenation
45pass s ~~ glob and s !~~ glob
46pass Type Errors
47pass can't use ++ on integers
48pass can't do mystr ++ mylist
48 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)