mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
- Added missing ones - Reviewed obsoleted ones - Disabled/deleted unnecessary ones - Added support for compile error checking - Added support for run error checking
26 lines
704 B
C++
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
|