Results for ysh-expr-compare.test.sh

statusoshosh-cpp
pass 101
FAIL 211
total1212
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
11pass FAIL Collection membership
details
11 passed, 0 OK, 0 not implemented, 0 BUG, 13 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\nok\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: 
  var t3 = 3, 1
  ^~~
[ stdin ]:5: fatal: Expected Int or Float operands
osh-cpp10 Tuple comparison is not allowed

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

stdout:
stderr: 
osh-cpp11 Collection membership

[osh-cpp stdout] Expected 'Int-in-List\nStr-in-List\nDict-in-List\nStr-in-Dict\n' Got ''

stdout:
stderr: