Results for oil-expr-compare.test.sh

statusosh
pass 9
FAIL 2
total11
caseoshdescription
0pass Exact equality with === and !==
1pass Approximate equality of Str x {Str, Int, Bool} with ~==
2pass Wrong Types with ~==
3FAIL Equality of ~== with Float (deferred)
details
4pass Comparison of Int
5pass Comparison of Str does conversion to Int
6pass Mixed Type Comparison does conversion to Int
7pass Invalid String is an error
8pass Bool conversion -- explicit allowed, implicit not allowed
9pass Chained Comparisons
10FAIL Tuple comparison is not allowed
details
9 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

osh3 Equality of ~== with Float (deferred)

[osh status] Expected 0, got 1

stdout:
stderr: 
  if (42 ~== 42.0) {
         ^~~
[ stdin ]:3: fatal: ~== expects a string on the left
osh10 Tuple comparison is not allowed

[osh stdout] Expected 'yes1\nyes2\n', got ''
[osh status] Expected 0, got 3

stdout:
stderr: 
  if (t2 > t1) { echo yes1 }
  ^~
[ stdin ]:7: fatal: Expression eval error: (4, 0) isn't like a number