Results for ysh-expr-bool.test.sh

statusoshosh-cpp
pass 30
FAIL 03
total33
caseoshosh-cppdescription
0pass FAIL not, and, or
details
1pass FAIL and-or chains for typed data
details
2pass FAIL x if b else y
details
3 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 not, and, or

[osh-cpp stdout] Expected 'false\nfalse\ntrue\n', got '\n\n\n'

stdout:


stderr:
osh-cpp1 and-or chains for typed data

[osh-cpp 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["a"]\n[]\n{"d":1}\n{}\nOR\nAND\n["1","2","3"]\n{"k":"v"}\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"
[osh-cpp status] Expected 0, got -6

stdout:
s
None
x
y
y

42
0
42
0
0.5
0.0
['a']
[]
{'d': 1}
{}
OR
AND
---
stderr:
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp2 x if b else y

[osh-cpp stdout] Expected '43\n41\n', got '\n\n'

stdout:

stderr: