Results for ysh-expr-compare.test.sh

statusosh
pass 16
total16
caseoshdescription
0pass Exact equality with === and !==
1pass Approximate equality of Str x {Str, Int, Bool} with ~==
2pass Wrong Types with ~==
3pass === on float not allowed
4pass floatsEqual()
5pass Comparison converts from Str -> Int or Float
6pass Comparison of Int
7pass Comparison of Str does conversion to Int
8pass Mixed Type Comparison does conversion to Int
9pass Invalid String is an error
10pass Bool conversion -- explicit allowed, implicit not allowed
11pass Chained Comparisons
12pass List / "Tuple" comparison is not allowed
13pass Ternary op behaves like if statement
14pass Undefined comparisons
15pass Non-comparable types in case arms
16 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped