Package com.singularsys.exttests
Class RpTest
java.lang.Object
com.singularsys.jeptests.system.JepTest
com.singularsys.exttests.RpTest
Tests the fastreal evaluator. @link{#testRpEval()} tests using the faster
RpEval.evaluate method. Most other tests use the RpEvaluator which uses the
jep evaluation framework and override tests from JepTest.- Author:
- Richard Morris
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classArcSin implementation counting number of callsNested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Sets up the parser.voidvoidvoidvoidvoidChecks if a function renamed in jep works with ReEval instances.voidvoidvoidvoidTest changing variables value after parsingvoidTest changing variables value after parsingvoidvoidvoidvoidvoidvoidvoidTest for bug with 1&&1&&1voidvoidvoidvoidvoidvoidvoidvoidtestNaN()voidtestNull()voidvoidTests basic operation of the RpEval class.voidvoidTests whether allowUndeclared is working properly.voidvoidvoidvoidprotected voidTest result j.evaluate(j.parse(expr))Methods inherited from class com.singularsys.jeptests.system.JepTest
assertEqNodes, buildMatrix, buildVector, calcValue, calcValue, checkVector, compareRecursive, complexValueTest, getNumber, myAssertEquals, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, setShiftZeroElePfmc, test_adding_existing_constant_fails, test_not_X_Y, test_parser_sets_parent, testAssign, testBinom, testBlankParser, testComments, testEleUnit, testEmptyEqn, testEmptyEqn2, testEvalExceptions, testEvaluate, testExpectedTokenSequence, testFormat, testFunction, testIf, testImplicitMul, testLogarithm, testLogical, testMacroFunction, testMultiLine, testMultiplyBug, testNoAssign, testNumberAsBooleanLogical, testNumbers, testNumParam, testParseException, testPlusPlus, testSemiColon, testSimpleSum, testSpecialFunctions, testUminusPower, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS
-
-
Constructor Details
-
RpTest
public RpTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp()Description copied from class:JepTestSets up the parser. -
valueTest
Description copied from class:JepTestTest result j.evaluate(j.parse(expr))- Overrides:
valueTestin classJepTest- Parameters:
expr- the expression to parse and evaluateexpected- result expected- Throws:
JepException
-
testRpEval
Tests basic operation of the RpEval class.- Throws:
Exception
-
testRpSurf
- Throws:
Exception
-
testSetAllowUndeclared
Description copied from class:JepTestTests whether allowUndeclared is working properly.- Overrides:
testSetAllowUndeclaredin classJepTest- Throws:
Exception
-
testChangeName
- Throws:
Exception
-
testEvaluateComplex
@Disabled("Complex test not relevant for Rp") @Test public void testEvaluateComplex()- Overrides:
testEvaluateComplexin classJepTest
-
testEvaluateString
@Disabled("String test not relevant for Rp") @Test public void testEvaluateString()- Overrides:
testEvaluateStringin classJepTest
-
testChangeVariableComplex
@Disabled("Complex test not relevant for Rp") @Test public void testChangeVariableComplex()Description copied from class:JepTestTest changing variables value after parsing- Overrides:
testChangeVariableComplexin classJepTest
-
testStrings
@Disabled("String test not relevant for Rp") @Test public void testStrings()- Overrides:
testStringsin classJepTest
-
testComplex
@Disabled("Complex test not relevant for Rp") @Test public void testComplex()- Overrides:
testComplexin classJepTest
-
testListAccess
@Disabled("List test not relevant for Rp") @Test public void testListAccess()- Overrides:
testListAccessin classJepTest
-
testListOperations
@Disabled("List test not relevant for Rp") @Test public void testListOperations()- Overrides:
testListOperationsin classJepTest
-
testComplexListAccess
@Disabled("Complex test not relevant for Rp") @Test public void testComplexListAccess()- Overrides:
testComplexListAccessin classJepTest
-
testListAccessShiftZero
@Disabled("List test not relevant for Rp") @Test public void testListAccessShiftZero()- Overrides:
testListAccessShiftZeroin classJepTest
-
testListExtra
@Disabled("List test not relevant for Rp") @Test public void testListExtra()- Overrides:
testListExtrain classJepTest
-
testListFunctions
@Disabled("List test not relevant for Rp") @Test public void testListFunctions()- Overrides:
testListFunctionsin classJepTest
-
testMultiDimArray
@Disabled("Array tests not relevant for Rp") @Test public void testMultiDimArray()- Overrides:
testMultiDimArrayin classJepTest
-
testMultiDimArrayShiftZero
@Disabled("Array tests not relevant for Rp") @Test public void testMultiDimArrayShiftZero()- Overrides:
testMultiDimArrayShiftZeroin classJepTest
-
testLazyLogicalBug
@Disabled("Logical tests not relevant for Rp") @Test public void testLazyLogicalBug()Description copied from class:JepTestTest for bug with 1&&1&&1- Overrides:
testLazyLogicalBugin classJepTest
-
testLazyLogical
@Disabled("Logical tests not relevant for Rp") @Test public void testLazyLogical()- Overrides:
testLazyLogicalin classJepTest
-
testLazyLogical2
@Disabled("Logic test not relevant for Rp") @Test public void testLazyLogical2()- Overrides:
testLazyLogical2in classJepTest
-
testRecursiveMacroFunction
@Disabled("RpEval cannot work with recursive functions") @Test public void testRecursiveMacroFunction()- Overrides:
testRecursiveMacroFunctionin classJepTest
-
testCaseString
@Disabled("String tests not relevant for Rp") @Test public void testCaseString()- Overrides:
testCaseStringin classJepTest
-
testSwitch
@Disabled("Switch test not relevant for Rp") @Test public void testSwitch()- Overrides:
testSwitchin classJepTest
-
testCaseNull
@Disabled("Switch test not relevant for Rp") @Test public void testCaseNull()- Overrides:
testCaseNullin classJepTest
-
testNull
@Disabled("Null test not relevant for Rp") @Test public void testNull() -
testStringsFun
@Disabled("String test not relevant for Rp") @Test public void testStringsFun()- Overrides:
testStringsFunin classJepTest
-
testSpecialFunctions
- Overrides:
testSpecialFunctionsin classJepTest- Throws:
Exception
-
test_lightWeightInstance
- Throws:
JepException
-
test_lightWeightInstance_Jep
- Throws:
JepException
-
test_customFun_lightWeightInstance
- Throws:
JepException
-
test_customFun_lightWeightInstance_jep
- Throws:
JepException
-
test_renamed_functions
Checks if a function renamed in jep works with ReEval instances.- Throws:
ParseExceptionJepException
-
testChangeVariable
Description copied from class:JepTestTest changing variables value after parsing- Overrides:
testChangeVariablein classJepTest- Throws:
Exception
-
testNaN
-