|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.singularsys.jeptests.JepTest
com.singularsys.jeptests.CPTest
com.singularsys.jeptests.RealEvalTest
public class RealEvalTest
| Field Summary |
|---|
| Fields inherited from class com.singularsys.jeptests.JepTest |
|---|
jep, myFalse, myTrue, PRINT_RESULTS |
| Constructor Summary | |
|---|---|
RealEvalTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
setUp()
Sets up the parser. |
void |
testChangeVariable()
Test changing variables value after parsing |
void |
testComplex()
|
void |
testEvaluate()
Tests the evaluate() method. |
void |
testListAccess()
|
void |
testStrings()
|
protected void |
valueTest(java.lang.String expr,
java.lang.Object expected)
Test result j.evaluate(j.parse(expr)) |
| Methods inherited from class com.singularsys.jeptests.CPTest |
|---|
testAddOp |
| Methods inherited from class com.singularsys.jeptests.JepTest |
|---|
calcValue, calcValue, complexValueTest, myAssertEquals, myAssertNaN, nodeTest, nodeTest, nodeTest, nodeTest, parseExceptionWithSpecParser, testAssign, testBinom, testBlankParser, testEvalExceptions, testFormat, testFunction, testIf, testImplicitMul, testLazyLogical, testLogarithm, testLogical, testNaN, testNumbers, testNumParam, testParseException, testPlusPlus, testSetAllowUndeclared, testSimpleSum, testUminusPower, valueTest, valueTestNaN, valueTestString |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RealEvalTest(java.lang.String name)
| Method Detail |
|---|
public void setUp()
JepTest
setUp in class CPTest
protected void valueTest(java.lang.String expr,
java.lang.Object expected)
throws java.lang.Exception
JepTest
valueTest in class JepTestexpr - the expression to parse and evaluateexpected - result expected
java.lang.Exception
public void testEvaluate()
throws java.lang.Exception
JepTest
testEvaluate in class JepTestjava.lang.Exception
public void testComplex()
throws java.lang.Exception
testComplex in class JepTestjava.lang.Exceptionpublic void testChangeVariable()
JepTest
testChangeVariable in class JepTest
public void testListAccess()
throws java.lang.Exception
testListAccess in class JepTestjava.lang.Exception
public void testStrings()
throws java.lang.Exception
testStrings in class JepTestjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||