Results for ysh-expr-bool.test.sh

statusosh
pass 6
FAIL 1
total7
caseoshdescription
0pass or short circuits
1pass and short circuits
2pass not operator behaves like Python
3pass not, and, or
4FAIL and-or chains for typed data
details
5pass or BashArray, or BashAssoc
6pass x if b else y
6 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

osh4 and-or chains for typed data

[osh stdout] Expected 's\nNone\nx\ny\ny\n\n42\n0\n42\n0\n0.5\n0.0\n[\'a\']\n[]\n{\'d\': 1}\n{}\nOR\nAND\n---\n"s"\nnull\nx\ny\ny\n\n42\n0\n42\n0\n0.5\n0.0\n(List) ["a"]\n(List) []\n(Dict) {"d":1}\n(Dict) {}\nOR\nAND\n' Got 's\nNone\nx\ny\ny\n\n42\n0\n42\n0\n0.5\n0.0\n[\'a\']\n[]\n{\'d\': 1}\n{}\nOR\nAND\n---\n"s"\nnull\n'
[osh status] Expected 0 Got 2

stdout:
s
None
x
y
y

42
0
42
0
0.5
0.0
['a']
[]
{'d': 1}
{}
OR
AND
---
"s"
null
stderr:
  echo $["x" or "y"]
             ^~
[ stdin ]:33: Unexpected token after arithmetic expression (Id.Word_Compound != Id.Arith_RBracket)