public void codeGenTest_Expr_CompileTimeEvaluation() { ASTObject.CGO.CompileTimeEvaluateExpressions = true; BFTestHelper.debugExpression_Output("0 ", "int", "RAND[0]"); BFTestHelper.debugExpression_Output("0 ", "int", "4 - 4"); BFTestHelper.debugExpression_Output("0 ", "int", "4 * 0"); BFTestHelper.debugExpression_Output("0 ", "int", "0 * 4"); BFTestHelper.debugExpression_Output("0 ", "int", "0 * 0"); BFTestHelper.debugExpression_Output("0 ", "int", "0 + 0"); BFTestHelper.debugExpression_Output("0 ", "int", "12 * (11 - 11)"); BFTestHelper.debugExpression_Output("0 ", "int", "666 / 6 - 111"); BFTestHelper.debugExpression("bool", "!a"); }
public void codeGenTest_Expr_Add() { BFTestHelper.debugExpression("int", "5+5"); }
public void codeGenTest_Expr_b4_rand_rec() { BFTestHelper.debugExpression("int", "RAND[RAND[4]+1]"); }
public void codeGenTest_Expr_b4_rand_negative() { BFTestHelper.debugExpression("int", "RAND[-4]"); }
public void codeGenTest_Expr_bool_or() { BFTestHelper.debugExpression("bool", "true || false"); }
public void codeGenTest_Expr_bool_1() { BFTestHelper.debugExpression("bool", "true && (false ^ true)"); }
public void codeGenTest_Expr_Literal_2() { BFTestHelper.debugExpression("int", "137"); }
public void codeGenTest_Expr_negative() { BFTestHelper.debugExpression("int", "-100"); }
public void codeGenTest_Expr_rand() { BFTestHelper.debugExpression("int", "40*(-50+(int)rand)"); }