Package com.singularsys.exttests.matrix
Class MRpeMatrixTest
java.lang.Object
com.singularsys.jeptests.system.JepTest
com.singularsys.jeptests.system.CPTest
com.singularsys.exttests.matrix.MatrixTest
com.singularsys.exttests.matrix.MRpeMatrixTest
Tests the fastmatrix 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 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
FieldsFields inherited from class com.singularsys.exttests.matrix.MatrixTest
dimv, mfact, mfield -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectCalculate the value of an expression.protected voidmyAssertEquals(String msg, Object expected, Object actual) protected Objectprotected voidvoidsetUp()Sets up the parser.voidvoidvoidvoidvoidTest changing variables value after parsingvoidvoidvoidvoidNull implementation as does not support arrays of matricesvoidvoidvoidvoidvoidvoidTest for bug with 1&&1&&1voidtestNull()voidvoidTests whether allowUndeclared is working properly.voidvoidvoidvoidprotected voidTest result j.evaluate(j.parse(expr))protected voidvalueTestString(String expr, String expected) Methods inherited from class com.singularsys.exttests.matrix.MatrixTest
buildMatrix, buildVector, checkVector, testAdd, testDet, testDiv, testEleUnit, testEleUnitShiftZero, testEq, testId, testListFunctions, testMatrixArrayAccess, testMatrixSetElement, testMod, testMul, testMultiDimArrayPrint, testNeg, testNeq, testSimpleVector, testSize, testSub, testTrace, testTransMethods inherited from class com.singularsys.jeptests.system.CPTest
testAddOp, testEmptyEqn2, testMultiDimArrayAccess, testMultiDimArrayAccessShiftZeroMethods inherited from class com.singularsys.jeptests.system.JepTest
assertEqNodes, calcValue, compareRecursive, complexValueTest, getNumber, myAssertNaN, myAssertNull, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, test_adding_existing_constant_fails, test_not_X_Y, test_parser_sets_parent, testAssign, testBinom, testBlankParser, testChangeVariable, testComments, testEmptyEqn, testEvalExceptions, testEvaluate, testExpectedTokenSequence, testFormat, testFunction, testIf, testImplicitMul, testListAccess, testListAccessShiftZero, testListExtra, testListOperations, testLogarithm, testLogical, testMacroFunction, testMultiDimArray, testMultiDimArrayShiftZero, testMultiLine, testMultiplyBug, testNaN, testNoAssign, testNumberAsBooleanLogical, testNumbers, testNumParam, testParseException, testPlusPlus, testSemiColon, testSimpleSum, testSpecialFunctions, testUminusPower, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNull
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS
-
-
Constructor Details
-
MRpeMatrixTest
public MRpeMatrixTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp()Description copied from class:JepTestSets up the parser.- Overrides:
setUpin classMatrixTest
-
valueTest
Description copied from class:JepTestTest result j.evaluate(j.parse(expr))- Overrides:
valueTestin classMatrixTest- Parameters:
expr- the expression to parse and evaluateexpected- result expected- Throws:
JepException
-
valueTestString
- Overrides:
valueTestStringin classMatrixTest- Throws:
Exception
-
myAssertEquals
protected void myAssertEquals(String msg, Object expected, Object actual) throws EvaluationException - Overrides:
myAssertEqualsin classMatrixTest- Throws:
EvaluationException
-
setShiftZeroElePfmc
protected void setShiftZeroElePfmc()- Overrides:
setShiftZeroElePfmcin classMatrixTest
-
calcValue
Description copied from class:JepTestCalculate the value of an expression.- Overrides:
calcValuein classJepTest- Parameters:
node-- Throws:
JepException
-
negativeZero
- Overrides:
negativeZeroin classJepTest
-
testSetAllowUndeclared
Description copied from class:JepTestTests whether allowUndeclared is working properly.- Overrides:
testSetAllowUndeclaredin classJepTest- Throws:
Exception
-
testEvaluateComplex
@Disabled("Complex test not run for MRpe") @Test public void testEvaluateComplex()- Overrides:
testEvaluateComplexin classJepTest
-
testEvaluateString
@Disabled("String test not run for MRpe") @Test public void testEvaluateString()- Overrides:
testEvaluateStringin classJepTest
-
testChangeVariableComplex
@Disabled("Complex test not run for MRpe") @Test public void testChangeVariableComplex()Description copied from class:JepTestTest changing variables value after parsing- Overrides:
testChangeVariableComplexin classJepTest
-
testStrings
@Disabled("String test not run for MRpe") @Test public void testStrings()- Overrides:
testStringsin classJepTest
-
testComplex
@Disabled("Complex test not run for MRpe") @Test public void testComplex()- Overrides:
testComplexin classJepTest
-
testLazyLogicalBug
@Disabled("logical test not run for MRpe") public void testLazyLogicalBug()Description copied from class:JepTestTest for bug with 1&&1&&1- Overrides:
testLazyLogicalBugin classJepTest
-
testLazyLogical
@Disabled("logical test not run for MRpe") public void testLazyLogical()- Overrides:
testLazyLogicalin classJepTest
-
testLazyLogical2
@Disabled("logical test not run for MRpe") @Test public void testLazyLogical2()- Overrides:
testLazyLogical2in classJepTest
-
testRecursiveMacroFunction
@Disabled("RecursiveMacroFunctions test not run for MRpe, check") public void testRecursiveMacroFunction()- Overrides:
testRecursiveMacroFunctionin classJepTest
-
testCaseString
@Disabled("String test not run for MRpe") public void testCaseString()- Overrides:
testCaseStringin classJepTest
-
testNull
@Disabled("Null test not run for MRpe") public void testNull() -
testCaseNull
@Disabled("Null test not run for MRpe") @Test public void testCaseNull()- Overrides:
testCaseNullin classJepTest
-
testStringsFun
@Test @Disabled("String test not run for MRpe") public void testStringsFun()- Overrides:
testStringsFunin classJepTest
-
testComplexListAccess
@Test @Disabled("Complex test not run for MRpe") public void testComplexListAccess()- Overrides:
testComplexListAccessin classJepTest
-
testSwitch
@Test @Disabled("Switch test not run for MRpe, check") public void testSwitch()- Overrides:
testSwitchin classJepTest
-
testDepth3ArrayAccess
@Test @Disabled("Tensor test not run for MRpe") public void testDepth3ArrayAccess()Description copied from class:MatrixTestNull implementation as does not support arrays of matrices- Overrides:
testDepth3ArrayAccessin classMatrixTest
-
testDepth3ArrayAccessShiftZero
@Test @Disabled("Tensor test not run for MRpe") public void testDepth3ArrayAccessShiftZero()- Overrides:
testDepth3ArrayAccessShiftZeroin classMatrixTest
-
testCPStrings
@Test @Disabled("String test not run for MRpe") public void testCPStrings()- Overrides:
testCPStringsin classCPTest
-
testChangeDim
- Throws:
Exception
-
testSpecialFunctions
- Overrides:
testSpecialFunctionsin classJepTest- Throws:
Exception
-
testChangeMatrixDim
- Throws:
Exception
-