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 voidsetUp()Sets up the parser.voidtestCaseNull()voidtestCaseString()voidtestChangeVariableComplex()Test changing variables value after parsingvoidtestComplex()voidtestComplexListAccess()voidtestCPStrings()voidtestDepth3ArrayAccess()voidtestDepth3ArrayAccessShiftZero()voidtestEvaluateComplex()voidtestEvaluateString()voidtestListAccess()voidtestListAccessShiftZero()voidtestListExtra()voidtestListFunctions()voidtestMultiDimArray()voidtestMultiDimArrayAccess()voidtestMultiDimArrayAccessShiftZero()voidtestMultiDimArrayShiftZero()voidtestSpecialFunctions()voidtestStrings()voidtestStringsFun()protected voidvalueTest(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:JepTestSets up the parser.
-
valueTest
protected void valueTest(java.lang.String expr, java.lang.Object expected) throws java.lang.ExceptionDescription copied from class:JepTestTest result j.evaluate(j.parse(expr))
-
testEvaluateComplex
public void testEvaluateComplex() throws java.lang.Exception- Overrides:
testEvaluateComplexin classJepTest- Throws:
java.lang.Exception
-
testEvaluateString
public void testEvaluateString() throws java.lang.Exception- Overrides:
testEvaluateStringin classJepTest- Throws:
java.lang.Exception
-
testComplex
public void testComplex() throws java.lang.Exception- Overrides:
testComplexin classJepTest- Throws:
java.lang.Exception
-
testChangeVariableComplex
public void testChangeVariableComplex()
Description copied from class:JepTestTest changing variables value after parsing- Overrides:
testChangeVariableComplexin classJepTest
-
testListAccess
public void testListAccess() throws java.lang.Exception- Overrides:
testListAccessin classJepTest- Throws:
java.lang.Exception
-
testListAccessShiftZero
public void testListAccessShiftZero() throws java.lang.Exception- Overrides:
testListAccessShiftZeroin classJepTest- Throws:
java.lang.Exception
-
testListFunctions
public void testListFunctions() throws java.lang.Exception- Overrides:
testListFunctionsin classJepTest- Throws:
java.lang.Exception
-
testListExtra
public void testListExtra() throws java.lang.Exception- Overrides:
testListExtrain classJepTest- Throws:
java.lang.Exception
-
testMultiDimArray
public void testMultiDimArray() throws java.lang.Exception- Overrides:
testMultiDimArrayin classJepTest- Throws:
java.lang.Exception
-
testMultiDimArrayAccess
public void testMultiDimArrayAccess() throws java.lang.Exception- Overrides:
testMultiDimArrayAccessin classCPTest- Throws:
java.lang.Exception
-
testDepth3ArrayAccess
public void testDepth3ArrayAccess() throws java.lang.Exception- Overrides:
testDepth3ArrayAccessin classCPTest- Throws:
java.lang.Exception
-
testMultiDimArrayShiftZero
public void testMultiDimArrayShiftZero() throws java.lang.Exception- Overrides:
testMultiDimArrayShiftZeroin classJepTest- Throws:
java.lang.Exception
-
testMultiDimArrayAccessShiftZero
public void testMultiDimArrayAccessShiftZero() throws java.lang.Exception- Overrides:
testMultiDimArrayAccessShiftZeroin classCPTest- Throws:
java.lang.Exception
-
testDepth3ArrayAccessShiftZero
public void testDepth3ArrayAccessShiftZero() throws java.lang.Exception- Overrides:
testDepth3ArrayAccessShiftZeroin classCPTest- Throws:
java.lang.Exception
-
testStrings
public void testStrings() throws java.lang.Exception- Overrides:
testStringsin classJepTest- Throws:
java.lang.Exception
-
testStringsFun
public void testStringsFun() throws java.lang.Exception- Overrides:
testStringsFunin classJepTest- Throws:
java.lang.Exception
-
testCPStrings
public void testCPStrings() throws java.lang.Exception- Overrides:
testCPStringsin classCPTest- Throws:
java.lang.Exception
-
testCaseString
public void testCaseString() throws java.lang.Exception- Overrides:
testCaseStringin classJepTest- Throws:
java.lang.Exception
-
testCaseNull
public void testCaseNull() throws java.lang.Exception- Overrides:
testCaseNullin classJepTest- Throws:
java.lang.Exception
-
testSpecialFunctions
public void testSpecialFunctions() throws java.lang.Exception- Overrides:
testSpecialFunctionsin classJepTest- Throws:
java.lang.Exception
-
testComplexListAccess
public void testComplexListAccess() throws java.lang.Exception- Overrides:
testComplexListAccessin classJepTest- Throws:
java.lang.Exception
-
-