|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.singularsys.jeptests.system.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.
Field Summary | |
---|---|
protected int |
lineCount
Current line position |
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 |
protected static void |
println(java.lang.String str)
Helper function for printing lines. |
void |
testConfParser()
|
void |
testFast()
|
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 |
Field Detail |
---|
protected int lineCount
Constructor Detail |
---|
public ExpressionEvalTest()
Method Detail |
---|
public static void main(java.lang.String[] args)
public void testStandard() throws java.lang.Exception
java.lang.Exception
public void testFast() throws java.lang.Exception
java.lang.Exception
public void testConfParser() throws java.lang.Exception
java.lang.Exception
public void testPostfixEvaluator() throws java.lang.Exception
java.lang.Exception
public void testReals() throws java.lang.Exception
java.lang.Exception
public void testJepInstance(Jep jep, java.lang.String fileName)
protected static void println(java.lang.String str)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |