Results for ysh-expr.test.sh

statusoshosh_ALT
pass 3129
FAIL 02
total3131
caseoshosh_ALTdescription
0pass pass command sub $(echo hi)
1pass pass Set $HOME using 'var' (i.e. Oil string var in word evaluator)
2pass pass Use shell var in Oil expression
3pass pass Length doesn't apply to BashArray
4pass pass $[len(x)] inside strings
5pass FAIL Func with multiple args in multiple contexts
details
6pass FAIL Trailing Comma in Param list
details
7pass pass nested expr contexts
8pass pass YSH var used with shell arithmetic
9pass pass Parse { var x = 42 }
10pass pass double quoted
11pass pass double quoted respects strict_array
12pass pass simple var sub $name $0 $1 $? etc.
13pass pass braced var sub ${x:-default}
14pass pass braced var sub respects strict_array
15pass pass null / true / false
16pass pass multiline dict
17pass pass multiline array and command sub (only here docs disallowed)
18pass pass obj=>method() - remove?
19pass pass s->upper does NOT work, should be s.upper() or =>
20pass pass d.key
21pass pass a ++ b for string/list concatenation
22pass pass s ~~ glob and s !~~ glob
23pass pass Type Errors
24pass pass can't use ++ on integers
25pass pass can't do mystr ++ mylist
26pass pass expression literals
27pass pass No list comprehension in ^[]
28pass pass expression literals, evaluation failure
29pass pass expression literals, lazy evaluation
30pass pass expression literals, sugar for strings
60 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_ALT5 Func with multiple args in multiple contexts

[osh_ALT stdout] Expected '7 7\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
  source $LIB_YSH/math.ysh
         ^~~~~~~~
[ stdin ]:3: 'source' failed: No builtin file 'stdlib/ysh/math.ysh'
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 41396: command.Simple failed with status 1
osh_ALT6 Trailing Comma in Param list

[osh_ALT stdout] Expected '7 7\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
  source $LIB_YSH/math.ysh
         ^~~~~~~~
[ stdin ]:3: 'source' failed: No builtin file 'stdlib/ysh/math.ysh'
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 41400: command.Simple failed with status 1