Package com.singularsys.exttests
Class CleanerTest
java.lang.Object
com.singularsys.exttests.CleanerTest
- Direct Known Subclasses:
DoubleMatrixFieldCleanerTest,FieldCleanerTest,MatrixCleanerTest
Tests for the
ExpressionCleaner- Author:
- Rich Morris Created on 17-Apr-2005
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidmyAssertEquals(String msg, Object expected, Object actual) Assertion with message on command line.voidparsePreprocSimp(String expr) parseProcSimpEval(String expr, Object expected) voidsetUp()voidsimplifyTest(String expr, String expected) voidsimplifyTestFB(String expr, String expected) Test with FullBracket expansionvoidsimplifyTestString(String expr, String expected) voidvoidvoidtestBad()voidvoidChecks that cleaner does not clean functions and operators marked withDirtyFunctionand does clean other functions and operators with constant arguments.voidvoidvoidvoidvoidvoidvoidSimplification fails when an operator with three arguments is supplied.void
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS -
sv
-
jep
-
-
Constructor Details
-
CleanerTest
public CleanerTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
myAssertEquals
Assertion with message on command line.- Parameters:
msg- message to displayexpected- expected resultactual- actual result
-
parsePreprocSimp
- Throws:
IllegalArgumentExceptionJepException
-
simplifyTestString
public void simplifyTestString(String expr, String expected) throws IllegalArgumentException, JepException - Throws:
IllegalArgumentExceptionJepException
-
simplifyTest
public void simplifyTest(String expr, String expected) throws IllegalArgumentException, JepException - Throws:
IllegalArgumentExceptionJepException
-
simplifyTestFB
public void simplifyTestFB(String expr, String expected) throws IllegalArgumentException, JepException Test with FullBracket expansion- Parameters:
expr-expected-- Throws:
IllegalArgumentExceptionJepException
-
parseProcSimpEval
- Throws:
Exception
-
testSimplification
- Throws:
IllegalArgumentExceptionJepException
-
test_commutative_multiplication
- Throws:
JepException
-
testUnitaryPlusBug
- Throws:
Exception
-
testCommutative
- Throws:
JepException
-
testNegZero
- Throws:
IllegalArgumentExceptionJepException
-
const_var_const_var
- Throws:
Exception
-
nomCommute
- Throws:
Exception
-
testThreeArguments
Simplification fails when an operator with three arguments is supplied. These can be constructed by the polynomial package- Throws:
IllegalArgumentExceptionJepException
-
testMinus
- Throws:
IllegalArgumentExceptionJepException
-
testMigrate
- Throws:
IllegalArgumentExceptionJepException
-
test_double_negative
- Throws:
IllegalArgumentExceptionJepException
-
Integer_power
- Throws:
ParseException
-
testInfinity
- Throws:
IllegalArgumentExceptionJepException
-
testDirtyFunctions
Checks that cleaner does not clean functions and operators marked withDirtyFunctionand does clean other functions and operators with constant arguments.- Throws:
JepException
-
testKummerExpansion
- Throws:
JepException
-
constant_vector_become_VectorI
- Throws:
ParseExceptionEvaluationException
-
clean_with_vector
- Throws:
ParseException
-
constant_matrix_become_MatrixI
- Throws:
ParseExceptionEvaluationException
-
testBad
- Throws:
Exception
-