Package com.singularsys.jeptests.system
Class RealEvalTest
- java.lang.Object
-
- com.singularsys.jeptests.system.JepTest
-
- com.singularsys.jeptests.system.CPTest
-
- com.singularsys.jeptests.system.RealEvalTest
-
public class RealEvalTest extends CPTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.singularsys.jeptests.system.JepTest
JepTest.AddFractionsNary, JepTest.AddFractionsStack, JepTest.Diff, JepTest.MyBinary, JepTest.MyNary, JepTest.MyNaryBinary, JepTest.MyNullary, JepTest.MyUnary, JepTest.PiFun, JepTest.Product, JepTest.Square
-
-
Field Summary
-
Fields inherited from class com.singularsys.jeptests.system.JepTest
jep, myFalse, myTrue, PRINT_RESULTS
-
-
Constructor Summary
Constructors Constructor Description RealEvalTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Sets up the parser.void
testCaseNull()
void
testCaseString()
void
testChangeVariableComplex()
Test changing variables value after parsingvoid
testComplex()
void
testComplexListAccess()
void
testCPStrings()
void
testDepth3ArrayAccess()
void
testDepth3ArrayAccessShiftZero()
void
testEvaluateComplex()
void
testEvaluateString()
void
testListAccess()
void
testListAccessShiftZero()
void
testListExtra()
void
testListFunctions()
void
testMultiDimArray()
void
testMultiDimArrayAccess()
void
testMultiDimArrayAccessShiftZero()
void
testMultiDimArrayShiftZero()
void
testSpecialFunctions()
void
testStrings()
void
testStringsFun()
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.system.CPTest
testAddOp, testEmptyEqn2, testMultiDimArrayPrint
-
Methods inherited from class com.singularsys.jeptests.system.JepTest
assertEqNodes, buildMatrix, buildVector, calcValue, calcValue, checkVector, compareRecursive, complexValueTest, myAssertEquals, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, setShiftZeroElePfmc, test_not_X_Y, testAssign, testBinom, testBlankParser, testChangeVariable, testComments, testEleUnit, testEmptyEqn, testEvalExceptions, testEvaluate, testExpectedTokenSequence, testFormat, testFunction, testIf, testImplicitMul, testLazyLogical, testLazyLogical2, testLazyLogicalBug, testLogarithm, testLogical, testMacroFunction, testMultiLine, testMultiplyBug, testNaN, testNoAssign, testNull, testNumberAsBooleanLogical, testNumbers, testNumParam, testParseException, testPlusPlus, testRecursiveMacroFunction, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testSwitch, testUminusPower, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString
-
-
-
-
Method Detail
-
setUp
public void setUp()
Description copied from class:JepTest
Sets up the parser.
-
valueTest
protected void valueTest(java.lang.String expr, java.lang.Object expected) throws java.lang.Exception
Description copied from class:JepTest
Test result j.evaluate(j.parse(expr))
-
testEvaluateComplex
public void testEvaluateComplex() throws java.lang.Exception
- Overrides:
testEvaluateComplex
in classJepTest
- Throws:
java.lang.Exception
-
testEvaluateString
public void testEvaluateString() throws java.lang.Exception
- Overrides:
testEvaluateString
in classJepTest
- Throws:
java.lang.Exception
-
testComplex
public void testComplex() throws java.lang.Exception
- Overrides:
testComplex
in classJepTest
- Throws:
java.lang.Exception
-
testChangeVariableComplex
public void testChangeVariableComplex()
Description copied from class:JepTest
Test changing variables value after parsing- Overrides:
testChangeVariableComplex
in classJepTest
-
testListAccess
public void testListAccess() throws java.lang.Exception
- Overrides:
testListAccess
in classJepTest
- Throws:
java.lang.Exception
-
testListAccessShiftZero
public void testListAccessShiftZero() throws java.lang.Exception
- Overrides:
testListAccessShiftZero
in classJepTest
- Throws:
java.lang.Exception
-
testListFunctions
public void testListFunctions() throws java.lang.Exception
- Overrides:
testListFunctions
in classJepTest
- Throws:
java.lang.Exception
-
testListExtra
public void testListExtra() throws java.lang.Exception
- Overrides:
testListExtra
in classJepTest
- Throws:
java.lang.Exception
-
testMultiDimArray
public void testMultiDimArray() throws java.lang.Exception
- Overrides:
testMultiDimArray
in classJepTest
- Throws:
java.lang.Exception
-
testMultiDimArrayAccess
public void testMultiDimArrayAccess() throws java.lang.Exception
- Overrides:
testMultiDimArrayAccess
in classCPTest
- Throws:
java.lang.Exception
-
testDepth3ArrayAccess
public void testDepth3ArrayAccess() throws java.lang.Exception
- Overrides:
testDepth3ArrayAccess
in classCPTest
- Throws:
java.lang.Exception
-
testMultiDimArrayShiftZero
public void testMultiDimArrayShiftZero() throws java.lang.Exception
- Overrides:
testMultiDimArrayShiftZero
in classJepTest
- Throws:
java.lang.Exception
-
testMultiDimArrayAccessShiftZero
public void testMultiDimArrayAccessShiftZero() throws java.lang.Exception
- Overrides:
testMultiDimArrayAccessShiftZero
in classCPTest
- Throws:
java.lang.Exception
-
testDepth3ArrayAccessShiftZero
public void testDepth3ArrayAccessShiftZero() throws java.lang.Exception
- Overrides:
testDepth3ArrayAccessShiftZero
in classCPTest
- Throws:
java.lang.Exception
-
testStrings
public void testStrings() throws java.lang.Exception
- Overrides:
testStrings
in classJepTest
- Throws:
java.lang.Exception
-
testStringsFun
public void testStringsFun() throws java.lang.Exception
- Overrides:
testStringsFun
in classJepTest
- Throws:
java.lang.Exception
-
testCPStrings
public void testCPStrings() throws java.lang.Exception
- Overrides:
testCPStrings
in classCPTest
- Throws:
java.lang.Exception
-
testCaseString
public void testCaseString() throws java.lang.Exception
- Overrides:
testCaseString
in classJepTest
- Throws:
java.lang.Exception
-
testCaseNull
public void testCaseNull() throws java.lang.Exception
- Overrides:
testCaseNull
in classJepTest
- Throws:
java.lang.Exception
-
testSpecialFunctions
public void testSpecialFunctions() throws java.lang.Exception
- Overrides:
testSpecialFunctions
in classJepTest
- Throws:
java.lang.Exception
-
testComplexListAccess
public void testComplexListAccess() throws java.lang.Exception
- Overrides:
testComplexListAccess
in classJepTest
- Throws:
java.lang.Exception
-
-