|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.singularsys.jeptests.ExpressionEvalTest
public class ExpressionEvalTest
This class is designed for testing the validity of JEP evaluations. Expressions from a text file are evaluated with JEP in pairs of two, and the results are compared. If they do not match, the two expressions are printed to standard output.
Take for example an input text file containing the two lines
1+2 3.The expressions '1+2' and '3' are evaluated with JEP and the results compared.
Constructor Summary | |
---|---|
ExpressionEvalTest()
Creates a new ExpressionEvalTest instance |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
The main method checks the arguments and creates an instance and runs a test |
void |
testJepInstance(Jep jep,
java.lang.String fileName)
Loads the file specified in fileName. |
void |
testPostfixEvaluator()
|
void |
testReals()
|
void |
testStandard()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionEvalTest()
Method Detail |
---|
public static void main(java.lang.String[] args)
public void testStandard()
public void testPostfixEvaluator()
public void testReals()
public void testJepInstance(Jep jep, java.lang.String fileName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |