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, testMultiDimArrayAccessassertEqNodes, 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, valueTestStringprotected MatrixFactoryI mfact
protected MatrixFieldI mfield
public void setUp()
JepTestpublic void testListFunctions()
throws java.lang.Exception
testListFunctions in class JepTestjava.lang.Exceptionprotected java.lang.Object buildVector(java.lang.Object... eles)
throws java.lang.Exception
buildVector in class JepTestjava.lang.Exceptionprotected java.lang.Object buildMatrix(java.lang.Object[]... eles)
throws java.lang.Exception
buildMatrix in class JepTestjava.lang.Exceptionpublic void checkVector(java.lang.Object[] expected,
java.lang.Object actual)
throws EvaluationException
checkVector in class JepTestEvaluationExceptionprotected void myAssertEquals(java.lang.String msg,
java.lang.Object expected,
java.lang.Object actual)
throws EvaluationException
myAssertEquals in class JepTestEvaluationExceptionpublic void testSimpleVector()
throws java.lang.Exception
java.lang.Exceptionpublic void testAdd()
throws java.lang.Exception
java.lang.Exceptionpublic void testSub()
throws java.lang.Exception
java.lang.Exceptionpublic void testNeg()
throws java.lang.Exception
java.lang.Exceptionpublic void testEq()
throws java.lang.Exception
java.lang.Exceptionpublic void testNeq()
throws java.lang.Exception
java.lang.Exceptionpublic void testMul()
throws java.lang.Exception
java.lang.Exceptionpublic void testDiv()
throws java.lang.Exception
java.lang.Exceptionpublic void testMod()
throws java.lang.Exception
java.lang.Exceptionpublic void testDet()
throws java.lang.Exception
java.lang.Exceptionpublic void testTrace()
throws java.lang.Exception
java.lang.Exceptionpublic void testTrans()
throws java.lang.Exception
java.lang.Exceptionpublic void testId()
throws java.lang.Exception
java.lang.Exceptionpublic void testSize()
throws java.lang.Exception
java.lang.Exceptionpublic void testMatrixArrayAccess()
throws java.lang.Exception
java.lang.Exceptionpublic void testMatrixSetElement()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultiDimArrayPrint()
throws java.lang.Exception
testMultiDimArrayPrint in class CPTestjava.lang.Exceptionpublic void testDepth3ArrayAccess()
throws java.lang.Exception
testDepth3ArrayAccess in class CPTestjava.lang.ExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep