Results for oil-expr-compare.test.sh

statusoshosh-cpp
pass 91
FAIL 210
total1111
caseoshosh-cppdescription
0pass FAIL Exact equality with === and !==
details
1pass FAIL Approximate equality of Str x {Str, Int, Bool} with ~==
details
2pass FAIL Wrong Types with ~==
details
3FAIL pass Equality of ~== with Float (deferred)
details
4pass FAIL Comparison of Int
details
5pass FAIL Comparison of Str does conversion to Int
details
6pass FAIL Mixed Type Comparison does conversion to Int
details
7pass FAIL Invalid String is an error
details
8pass FAIL Bool conversion -- explicit allowed, implicit not allowed
details
9pass FAIL Chained Comparisons
details
10FAIL FAIL Tuple comparison is not allowed
detailsdetails
10 passed, 0 OK, 0 not implemented, 0 BUG, 12 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh-cpp0 Exact equality with === and !==

[osh-cpp stdout] Expected 'ok\nok\n', got ''

stdout:
stderr: 
osh-cpp1 Approximate equality of Str x {Str, Int, Bool} with ~==

[osh-cpp stdout] Expected 'Str-Str\nStr-Int\nStr-Bool\nbool matrix\n', got ''
[osh-cpp status] Expected 0, got 2

stdout:
stderr: 
  const matrix = [
                  ^
[ stdin ]:25: Syntax error in expression (near Id.Op_Newline)
osh-cpp2 Wrong Types with ~==

[osh-cpp stdout] Expected 'one\n', got 'one\ntwo\n'
[osh-cpp status] Expected 1, got 0

stdout:
one
two
stderr:
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
osh-cpp4 Comparison of Int

[osh-cpp stdout] Expected '<\n<=\n>\n>=\n', got ''

stdout:
stderr: 
osh-cpp5 Comparison of Str does conversion to Int

[osh-cpp stdout] Expected '<\n<=\n>\n>=\n', got ''

stdout:
stderr: 
osh-cpp6 Mixed Type Comparison does conversion to Int

[osh-cpp stdout] Expected '<\n<=\n>\n>=\n', got ''

stdout:
stderr: 
osh-cpp7 Invalid String is an error

[osh-cpp stdout] Expected '', got 'should not get here\n'
[osh-cpp status] Expected 3, got 0

stdout:
should not get here
stderr:
osh-cpp8 Bool conversion -- explicit allowed, implicit not allowed

[osh-cpp stdout] Expected '<\n<=\n', got 'should not get here\n'
[osh-cpp status] Expected 3, got 0

stdout:
should not get here
stderr:
osh-cpp9 Chained Comparisons

[osh-cpp stdout] Expected '123\n123\nno\n', got 'no\n'

stdout:
no
stderr:
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
osh-cpp10 Tuple comparison is not allowed

[osh-cpp stdout] Expected 'yes1\nyes2\n', got ''

stdout:
stderr: