Results for ysh-expr-compare.test.sh

statusoshosh-cpp
pass 1616
FAIL 11
total1717
caseoshosh-cppdescription
0pass pass Exact equality with === and !==
1pass pass Approximate equality of Str x {Str, Int, Bool} with ~==
2pass pass Wrong Types with ~==
3pass pass === on float not allowed
4pass pass floatsEqual()
5pass pass Comparison converts from Str -> Int or Float
6pass pass Comparison of Int
7pass pass Comparison of Str does conversion to Int
8pass pass Mixed Type Comparison does conversion to Int
9FAIL FAIL Invalid String is an error
detailsdetails
10pass pass Bool conversion -- explicit allowed, implicit not allowed
11pass pass Chained Comparisons
12pass pass List / "Tuple" comparison is not allowed
13pass pass Ternary op behaves like if statement
14pass pass Undefined comparisons
15pass pass Non-comparable types in case arms
16pass pass object identity
32 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

osh9 Invalid String is an error

[osh stdout] Expected '', got 'code=3\n(Bool) true\ncode=0\n'
[osh status] Expected 3, got 0

stdout:
code=3
(Bool)  true
code=0
stderr:
osh-cpp9 Invalid String is an error

[osh-cpp stdout] Expected '', got 'code=3\n(Bool) true\ncode=0\n'
[osh-cpp status] Expected 3, got 0

stdout:
code=3
(Bool)  true
code=0
stderr: