Package com.singularsys.exttests
Class MRpeTest
java.lang.Object
com.singularsys.exttests.MRpeTest
JUnit test for full Matrix Rp evaluator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidParses and cleans both expressions, test toString on bothvoidcleanTestString(String expr, String expected) Parses and cleans expr, test equal to expected stringvoidcomplexValueTest(String expr, Complex expected, double tol) voidvoidvoidvoidVariable x = jep.addVariable("x"); dimV.setVariableDimensions(x, Dimensions.SCALAR); MrpVarRef xref = mrpe.getVarRef(x); mrpe.setVarValue(xref, 5.0); ComponentSet cs = new LightWeightComponentSet(jep); XJep lwj = new XJep(cs); MrpEval neweval = (MrpEval) mrpe.getLightWeightInstance(lwj);voidvoidvoidvoidvoidvoidmyAssertEquals(String msg, String actual, String expected) voidvoidvoidvoidvoidvoidvoidvoidsetUp()voidvoidvoidvoidvoidvoidvoidtestEle()voidvoidtestFun()voidvoidtestGood()voidvoidvoidvoidvoidTests basic operation of the RpEval class.voidvoidtestMul()voidvoidtestRp()voidvoidvoidvoidvoidvoidUsing a non matrix compatible set of operators/functions.voidvoidtestVn()protected voidvoid
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS
-
-
Constructor Details
-
MRpeTest
public MRpeTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
testMRpeEval
Tests basic operation of the RpEval class.- Throws:
Exception
-
testRpSurf
- Throws:
Exception
-
testFunctionName
- Throws:
Exception
-
instance_with_null_matrix_factory_works
- Throws:
JepException
-
instance_with_null_matrix_factory_fails_with_MatrixFunctions
@Test public void instance_with_null_matrix_factory_fails_with_MatrixFunctions() throws JepException- Throws:
JepException
-
test_compile_Variable_Node
@Test public void test_compile_Variable_Node() -
testResultType
- Throws:
Exception
-
testVariableMatrix
- Throws:
Exception
-
testGood
@Test public void testGood() -
myAssertEquals
-
valueTest
- Throws:
Exception
-
valueTest
- Throws:
JepException
-
complexValueTest
- Throws:
Exception
-
calcValue
- Throws:
JepException
-
cleanTest
Parses and cleans both expressions, test toString on both- Parameters:
expr-expected-- Throws:
JepException
-
cleanTestString
Parses and cleans expr, test equal to expected string- Parameters:
expr-expected-- Throws:
JepException
-
testRp
- Throws:
JepException
-
testRpAllDim
- Throws:
JepException
-
testMul
- Throws:
JepException
-
testAssign
- Throws:
JepException
-
testSetEle
- Throws:
JepException
-
testChangedDim
- Throws:
JepException
-
testLogical
- Throws:
JepException
-
testVn
- Throws:
JepException
-
testHeaps
- Throws:
JepException
-
testMatrixFunctions
- Throws:
JepException
-
testEle
- Throws:
JepException
-
testSetVar
- Throws:
JepException
-
set_scalar_variable_to_scalar
- Throws:
JepException
-
set_scalar_variable_to_one_element_vector
- Throws:
JepException
-
set_one_element_vector_to_vector
- Throws:
JepException
-
setting_one_element_vector_to_scalar_fails
- Throws:
JepException
-
set_vector_variable_to_vector
- Throws:
JepException
-
set_matrix_variable_to_2D_array
- Throws:
JepException
-
testFun
- Throws:
JepException
-
testUndecVar
- Throws:
JepException
-
testMRpSurf
- Throws:
Exception
-
testFocalSurface
- Throws:
JepException
-
testUnsetDimension
Using a non matrix compatible set of operators/functions.- Throws:
JepException
-
test_toFlattenedArray
- Throws:
JepException
-
duplicate_MrpVarRef_preserve_properties
- Throws:
JepException
-
getLightweightInstance_null_copies_varvalues
- Throws:
JepException
-
getLightweightInstance_Jep_copies_varrefs__properties_values
@Test public void getLightweightInstance_Jep_copies_varrefs__properties_values() throws JepExceptionVariable x = jep.addVariable("x"); dimV.setVariableDimensions(x, Dimensions.SCALAR); MrpVarRef xref = mrpe.getVarRef(x); mrpe.setVarValue(xref, 5.0); ComponentSet cs = new LightWeightComponentSet(jep); XJep lwj = new XJep(cs); MrpEval neweval = (MrpEval) mrpe.getLightWeightInstance(lwj);- Throws:
JepException
-
normal_distribution
- Throws:
Exception
-
testCMul_with_lightWeightInstance
- Throws:
JepException
-
test_matrixFunctionI_with_lightWeightInstance_Jep
- Throws:
JepException
-
getVarRef_string_works_with_lightWeightInstance_Jep
- Throws:
JepException
-
getVarRef_variable_works_with_lightWeightInstance_Jep
- Throws:
JepException
-
convertToVector_fails_with_lightWeightInstance_Jep
- Throws:
JepException
-
convertToVector_works_with_lightWeightInstance_Jep_with_matrix_factory
@Test public void convertToVector_works_with_lightWeightInstance_Jep_with_matrix_factory() throws JepException- Throws:
JepException
-
testMatrixFunctions_with_lightWeightInstance
- Throws:
JepException
-