Я нашел прекрасное:
void math_test()
{
print("Checking int math... ");
if( 2+2 != 4 ) throw "int + math error";
if( 2-2 != 0 ) throw "int - math error";
if( 2/2 != 1 ) throw "int / math error";
if( 3*3 != 9 ) throw "int * math error";
if( 3 < 2 ) throw "int < error";
if( 5 > 6 ) throw "int > error";
if( 3 <= 2 ) throw "int <= error";
if( 5 >= 6 ) throw "int >= error";
if( !(3 <= 3) ) throw "int <= error";
if( !(5 >= 5) ) throw "int >= error";
if( 0 || 0 ) throw "int || math error";
if( 1 || 0 ) {} else throw "int || math error";
if( 0 || 1 ) {} else throw "int || math error";
if( 1 || 1 ) {} else throw "int || math error";
if( 0 && 0 ) throw "int && math error";
if( 1 && 0 ) throw "int && math error";
if( 0 && 1 ) throw "int && math error";
if( 1 && 1 ) {} else throw "int && math error";
if( 0 | 0 ) throw "int | math error";
if( 1 | 0 ) {} else throw "int | math error";
if( 0 | 1 ) {} else throw "int | math error";
if( 1 | 1 ) {} else throw "int | math error";
if( 0 & 0 ) throw "int & math error";
if( 1 & 0 ) throw "int & math error";
if( 0 & 1 ) throw "int & math error";
if( 1 & 1 ) {} else throw "int & math error";
print("passed\n");
}