Results for ysh-expr.test.sh

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

Details on runs that didn't PASS

osh21 a ++ b for string/list concatenation

[osh stdout] Expected 'string abcde\nlist len=3\n---\nStr Int 3\nList Int 3\nInt Str 3\n' Got 'string abcde\nlist len=3\n---\nStr Int\nList Int\nInt Str\n'

stdout:
string abcde
list len=3
---
Str Int
List Int
Int Str
stderr:
osh23 Type Errors

[osh stdout] Expected '3\n3\n3\n3\n' Got '\n\n\n\n'

stdout:



stderr: