public class MRpeMatrixTest extends MatrixTest
mfact, mfield
jep, 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, testTrace
testAddOp, testBug61, testEmptyEqn2, testMultiDimArrayAccess
assertEqNodes, 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, valueTestNull
public void setUp()
JepTest
setUp
in class MatrixTest
protected java.lang.Object calcValue(Node node) throws java.lang.Exception
JepTest
protected java.lang.Object negativeZero()
negativeZero
in class JepTest
public void testSetAllowUndeclared() throws java.lang.Exception
JepTest
testSetAllowUndeclared
in class JepTest
java.lang.Exception
public void testEvaluateComplex() throws java.lang.Exception
testEvaluateComplex
in class JepTest
java.lang.Exception
public void testMatrixSetElement() throws java.lang.Exception
testMatrixSetElement
in class MatrixTest
java.lang.Exception
public void testEvaluateString() throws java.lang.Exception
testEvaluateString
in class JepTest
java.lang.Exception
public void testChangeVariableComplex() throws java.lang.Exception
JepTest
testChangeVariableComplex
in class JepTest
java.lang.Exception
public void testStrings() throws java.lang.Exception
testStrings
in class JepTest
java.lang.Exception
public void testComplex() throws java.lang.Exception
testComplex
in class JepTest
java.lang.Exception
public void testListAccess() throws java.lang.Exception
testListAccess
in class JepTest
java.lang.Exception
public void testListFunctions() throws java.lang.Exception
testListFunctions
in class MatrixTest
java.lang.Exception
public void testLazyLogicalBug() throws java.lang.Exception
JepTest
testLazyLogicalBug
in class JepTest
java.lang.Exception
public void testLazyLogical() throws java.lang.Exception
testLazyLogical
in class JepTest
java.lang.Exception
public void testLazyLogical2() throws java.lang.Exception
testLazyLogical2
in class JepTest
java.lang.Exception
public void testRecursiveMacroFunction() throws java.lang.Exception
testRecursiveMacroFunction
in class JepTest
java.lang.Exception
public void testCaseString() throws java.lang.Exception
testCaseString
in class JepTest
java.lang.Exception
public void testNull() throws java.lang.Exception
public void testCaseNull() throws java.lang.Exception
testCaseNull
in class JepTest
java.lang.Exception
public void testStringsFun() throws java.lang.Exception
testStringsFun
in class JepTest
java.lang.Exception
public void testTrans() throws java.lang.Exception
testTrans
in class MatrixTest
java.lang.Exception
public void testSwitch() throws java.lang.Exception
testSwitch
in class JepTest
java.lang.Exception
public void testDepth3ArrayAccess() throws java.lang.Exception
MatrixTest
testDepth3ArrayAccess
in class MatrixTest
java.lang.Exception
public void testCPStrings() throws java.lang.Exception
testCPStrings
in class CPTest
java.lang.Exception
protected 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 JepTest
java.lang.Exception
protected void myAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual) throws EvaluationException
myAssertEquals
in class MatrixTest
EvaluationException
public void testChangeDim() throws java.lang.Exception
java.lang.Exception
public void testSpecialFunctions() throws java.lang.Exception
testSpecialFunctions
in class JepTest
java.lang.Exception
Copyright © 2018 Singular Systems http://www.singularsys.com/jep