public class MRpeMatrixTest extends MatrixTest
mfact, mfieldjep, myFalse, myTrue, PRINT_RESULTS| Constructor and Description |
|---|
MRpeMatrixTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
calcValue(Node node)
Calculate the value of an expression.
|
protected void |
myAssertEquals(java.lang.String msg,
java.lang.Object expected,
java.lang.Object actual) |
protected java.lang.Object |
negativeZero() |
void |
setUp()
Sets up the parser.
|
void |
testCaseNull() |
void |
testCaseString() |
void |
testChangeDim() |
void |
testChangeVariableComplex()
Test changing variables value after parsing
|
void |
testComplex() |
void |
testCPStrings() |
void |
testDepth3ArrayAccess()
Null implementation as does not support arrays of matrices
|
void |
testEvaluateComplex() |
void |
testEvaluateString() |
void |
testLazyLogical() |
void |
testLazyLogical2() |
void |
testLazyLogicalBug()
Test for bug with 1&&1&&1
|
void |
testListAccess() |
void |
testListFunctions() |
void |
testMatrixSetElement() |
void |
testNull() |
void |
testRecursiveMacroFunction() |
void |
testSetAllowUndeclared()
Tests whether allowUndeclared is working properly.
|
void |
testSpecialFunctions() |
void |
testStrings() |
void |
testStringsFun() |
void |
testSwitch() |
void |
testTrans() |
protected void |
valueTest(java.lang.String expr,
java.lang.Object expected)
Test result j.evaluate(j.parse(expr))
|
protected void |
valueTestString(java.lang.String expr,
java.lang.String expected) |
buildMatrix, buildVector, checkVector, testAdd, testDet, testDiv, testEq, testId, testMatrixArrayAccess, testMod, testMul, testMultiDimArrayPrint, testNeg, testNeq, testSimpleVector, testSize, testSub, testTracetestAddOp, testBug61, testEmptyEqn2, testMultiDimArrayAccessassertEqNodes, calcValue, compareRecursive, complexValueTest, myAssertNaN, myAssertNull, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, testAssign, testBinom, testBlankParser, testChangeVariable, testComments, testEmptyEqn, testEvalExceptions, testEvaluate, testExpectedTokenSequence, testFormat, testFunction, testIf, testImplicitMul, testListExtra, testLogarithm, testLogical, testMacroFunction, testMultiDimArray, testMultiLine, testMultiplyBug, testNaN, testNoAssign, testNumberAsBooleanLogical, testNumbers, testNumParam, testParseException, testPlusPlus, testSemiColon, testSimpleSum, testSpecialFunctions, testUminusPower, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNullpublic void setUp()
JepTestsetUp in class MatrixTestprotected java.lang.Object calcValue(Node node) throws java.lang.Exception
JepTestprotected java.lang.Object negativeZero()
negativeZero in class JepTestpublic void testSetAllowUndeclared()
throws java.lang.Exception
JepTesttestSetAllowUndeclared in class JepTestjava.lang.Exceptionpublic void testEvaluateComplex()
throws java.lang.Exception
testEvaluateComplex in class JepTestjava.lang.Exceptionpublic void testMatrixSetElement()
throws java.lang.Exception
testMatrixSetElement in class MatrixTestjava.lang.Exceptionpublic void testEvaluateString()
throws java.lang.Exception
testEvaluateString in class JepTestjava.lang.Exceptionpublic void testChangeVariableComplex()
throws java.lang.Exception
JepTesttestChangeVariableComplex in class JepTestjava.lang.Exceptionpublic void testStrings()
throws java.lang.Exception
testStrings in class JepTestjava.lang.Exceptionpublic void testComplex()
throws java.lang.Exception
testComplex in class JepTestjava.lang.Exceptionpublic void testListAccess()
throws java.lang.Exception
testListAccess in class JepTestjava.lang.Exceptionpublic void testListFunctions()
throws java.lang.Exception
testListFunctions in class MatrixTestjava.lang.Exceptionpublic void testLazyLogicalBug()
throws java.lang.Exception
JepTesttestLazyLogicalBug in class JepTestjava.lang.Exceptionpublic void testLazyLogical()
throws java.lang.Exception
testLazyLogical in class JepTestjava.lang.Exceptionpublic void testLazyLogical2()
throws java.lang.Exception
testLazyLogical2 in class JepTestjava.lang.Exceptionpublic void testRecursiveMacroFunction()
throws java.lang.Exception
testRecursiveMacroFunction in class JepTestjava.lang.Exceptionpublic void testCaseString()
throws java.lang.Exception
testCaseString in class JepTestjava.lang.Exceptionpublic void testNull()
throws java.lang.Exception
public void testCaseNull()
throws java.lang.Exception
testCaseNull in class JepTestjava.lang.Exceptionpublic void testStringsFun()
throws java.lang.Exception
testStringsFun in class JepTestjava.lang.Exceptionpublic void testTrans()
throws java.lang.Exception
testTrans in class MatrixTestjava.lang.Exceptionpublic void testSwitch()
throws java.lang.Exception
testSwitch in class JepTestjava.lang.Exceptionpublic void testDepth3ArrayAccess()
throws java.lang.Exception
MatrixTesttestDepth3ArrayAccess in class MatrixTestjava.lang.Exceptionpublic void testCPStrings()
throws java.lang.Exception
testCPStrings in class CPTestjava.lang.Exceptionprotected void valueTest(java.lang.String expr,
java.lang.Object expected)
throws java.lang.Exception
protected void valueTestString(java.lang.String expr,
java.lang.String expected)
throws java.lang.Exception
valueTestString in class JepTestjava.lang.Exceptionprotected void myAssertEquals(java.lang.String msg,
java.lang.Object expected,
java.lang.Object actual)
throws EvaluationException
myAssertEquals in class MatrixTestEvaluationExceptionpublic void testChangeDim()
throws java.lang.Exception
java.lang.Exceptionpublic void testSpecialFunctions()
throws java.lang.Exception
testSpecialFunctions in class JepTestjava.lang.ExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep