polserver/testsuite/escript/math/relops.inc
Gabriele Tozzi e085b218f6 Unit tests: full revision, now all run correctly
- Added missing ones
- Reviewed obsoleted ones
- Disabled/deleted unnecessary ones
- Added support for compile error checking
- Added support for run error checking
2015-12-19 05:31:23 +01:00

26 lines
704 B
C++

function Text( b )
if (b)
return "true";
else
return "false";
endif
endfunction
function compareTest( x, y )
print( "compare: x=" + x + ", y=" + y );
print( "y <= x? " + Text( y <= x ) );
print( "y < x? " + Text( y < x ) );
print( "y >= x? " + Text( y >= x ) );
print( "y > x? " + Text( y > x ) );
print( "y == x? " + Text( y == x ) );
print( "y != x? " + Text( y != x ) );
print( "x <= y? " + Text( x <= y ) );
print( "x < y? " + Text( x < y ) );
print( "x >= y? " + Text( x >= y ) );
print( "x > y? " + Text( x > y ) );
print( "x == y? " + Text( x == y ) );
print( "x != y? " + Text( x != y ) );
endfunction