public class ExpressionEvalTest
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
protected int |
lineCount
Current line position
|
Constructor and Description |
---|
ExpressionEvalTest()
Creates a new ExpressionEvalTest instance
|
Modifier and Type | Method and Description |
---|---|
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.io.BufferedReader reader) |
void |
testJepInstance(Jep jep,
java.lang.String fileName)
Loads the file specified in fileName.
|
void |
testPostfixEvaluator() |
void |
testReals() |
void |
testStandard() |
public ExpressionEvalTest()
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)
public void testJepInstance(Jep jep, java.io.BufferedReader reader)
protected static void println(java.lang.String str)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep