public class MatrixTest extends CPTest
Modifier and Type | Field and Description |
---|---|
protected MatrixFactoryI |
mfact |
protected MatrixFieldI |
mfield |
jep, myFalse, myTrue, PRINT_RESULTS
Constructor and Description |
---|
MatrixTest() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
buildMatrix(java.lang.Object[]... eles) |
protected java.lang.Object |
buildVector(java.lang.Object... eles) |
void |
checkVector(java.lang.Object[] expected,
java.lang.Object actual) |
protected void |
myAssertEquals(java.lang.String msg,
java.lang.Object expected,
java.lang.Object actual) |
void |
setUp()
Sets up the parser.
|
void |
testAdd() |
void |
testDepth3ArrayAccess()
Null implementation as does not support arrays of matrices
|
void |
testDet() |
void |
testDiv() |
void |
testEq() |
void |
testId() |
void |
testListFunctions() |
void |
testMatrixArrayAccess() |
void |
testMatrixSetElement() |
void |
testMod() |
void |
testMul() |
void |
testMultiDimArrayPrint() |
void |
testNeg() |
void |
testNeq() |
void |
testSimpleVector() |
void |
testSize() |
void |
testSub() |
void |
testTrace() |
void |
testTrans() |
testAddOp, testBug61, testCPStrings, testEmptyEqn2, testMultiDimArrayAccess
assertEqNodes, calcValue, calcValue, compareRecursive, complexValueTest, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, testAssign, testBinom, testBlankParser, testCaseNull, testCaseString, testChangeVariable, testChangeVariableComplex, testComments, testComplex, testEmptyEqn, testEvalExceptions, testEvaluate, testEvaluateComplex, testEvaluateString, testExpectedTokenSequence, testFormat, testFunction, testIf, testImplicitMul, testLazyLogical, testLazyLogical2, testLazyLogicalBug, testListAccess, testListExtra, testLogarithm, testLogical, testMacroFunction, testMultiDimArray, testMultiLine, testMultiplyBug, testNaN, testNoAssign, testNull, testNumberAsBooleanLogical, testNumbers, testNumParam, testParseException, testPlusPlus, testRecursiveMacroFunction, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testSpecialFunctions, testStrings, testStringsFun, testSwitch, testUminusPower, testX2Y, valueTest, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString
protected MatrixFactoryI mfact
protected MatrixFieldI mfield
public void setUp()
JepTest
public void testListFunctions() throws java.lang.Exception
testListFunctions
in class JepTest
java.lang.Exception
protected java.lang.Object buildVector(java.lang.Object... eles) throws java.lang.Exception
buildVector
in class JepTest
java.lang.Exception
protected java.lang.Object buildMatrix(java.lang.Object[]... eles) throws java.lang.Exception
buildMatrix
in class JepTest
java.lang.Exception
public void checkVector(java.lang.Object[] expected, java.lang.Object actual) throws EvaluationException
checkVector
in class JepTest
EvaluationException
protected void myAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual) throws EvaluationException
myAssertEquals
in class JepTest
EvaluationException
public void testSimpleVector() throws java.lang.Exception
java.lang.Exception
public void testAdd() throws java.lang.Exception
java.lang.Exception
public void testSub() throws java.lang.Exception
java.lang.Exception
public void testNeg() throws java.lang.Exception
java.lang.Exception
public void testEq() throws java.lang.Exception
java.lang.Exception
public void testNeq() throws java.lang.Exception
java.lang.Exception
public void testMul() throws java.lang.Exception
java.lang.Exception
public void testDiv() throws java.lang.Exception
java.lang.Exception
public void testMod() throws java.lang.Exception
java.lang.Exception
public void testDet() throws java.lang.Exception
java.lang.Exception
public void testTrace() throws java.lang.Exception
java.lang.Exception
public void testTrans() throws java.lang.Exception
java.lang.Exception
public void testId() throws java.lang.Exception
java.lang.Exception
public void testSize() throws java.lang.Exception
java.lang.Exception
public void testMatrixArrayAccess() throws java.lang.Exception
java.lang.Exception
public void testMatrixSetElement() throws java.lang.Exception
java.lang.Exception
public void testMultiDimArrayPrint() throws java.lang.Exception
testMultiDimArrayPrint
in class CPTest
java.lang.Exception
public void testDepth3ArrayAccess() throws java.lang.Exception
testDepth3ArrayAccess
in class CPTest
java.lang.Exception
Copyright © 2018 Singular Systems http://www.singularsys.com/jep