@Override protected void testScenario() { Expression e = new Expression(""); for (int i = 0; i <= super.iterNum; i++) { e.setExpressionString("sin(2+(3*4)^2)/10"); e.checkSyntax(); } }
@Override protected void testScenario() { Argument x = new Argument("x"); Expression e = new Expression(test.exprStr, x); for (int i = 0; i <= super.iterNum; i++) { x.setArgumentValue(i); e.calculate(); } }
@Override protected void testScenario() { Argument x = new Argument("x"); Argument y = new Argument("y"); Function f = new Function("f(x,y)=3*x+4*y"); Expression e = new Expression(test.exprStr, f, x, y); for (int i = 0; i <= super.iterNum; i++) { x.setArgumentValue(i); y.setArgumentValue(i); e.calculate(); } }
@Override protected void testScenario() { Expression e = new Expression(""); for (int i = 0; i <= super.iterNum; i++) e = new Expression("sin(2+(3*4)^2)/10"); e.calculate(); }
@Override protected void testScenario() { Expression e = new Expression(test.exprStr); for (int i = 0; i <= super.iterNum; i++) e.calculate(); }