Package com.singularsys.exttests
Class CleanerTest
- java.lang.Object
-
- com.singularsys.exttests.CleanerTest
-
- Direct Known Subclasses:
FieldCleanerTest
,MatrixCleanerTest
public class CleanerTest extends java.lang.Object
- Author:
- Rich Morris Created on 17-Apr-2005
-
-
Constructor Summary
Constructors Constructor Description CleanerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Integer_power()
void
myAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual)
Assertion with message on command line.void
nomCommute()
java.lang.String
parsePreprocSimp(java.lang.String expr)
Node
parseProcSimpEval(java.lang.String expr, java.lang.Object expected)
void
setUp()
void
simplifyTest(java.lang.String expr, java.lang.String expected)
void
simplifyTestString(java.lang.String expr, java.lang.String expected)
void
testCommutative()
void
testDirtyFunctions()
Checks that cleaner does not clean functions and operators marked withDirtyFunction
and does clean other functions and operators with constant arguments.void
testInfinity()
void
testKummerExpansion()
void
testMigrate()
void
testMinus()
void
testNegZero()
void
testSimplification()
void
testThreeArgumnet()
Simplification fails when an operator with three arguments is supplied.void
testUnitaryPlusBug()
-
-
-
Method Detail
-
setUp
public void setUp()
-
myAssertEquals
public void myAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual)
Assertion with message on command line.- Parameters:
msg
- message to displayexpected
- expected resultactual
- actual result
-
parsePreprocSimp
public java.lang.String parsePreprocSimp(java.lang.String expr) throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
simplifyTestString
public void simplifyTestString(java.lang.String expr, java.lang.String expected) throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
simplifyTest
public void simplifyTest(java.lang.String expr, java.lang.String expected) throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
parseProcSimpEval
public Node parseProcSimpEval(java.lang.String expr, java.lang.Object expected) throws ParseException, java.lang.Exception
- Throws:
ParseException
java.lang.Exception
-
testSimplification
public void testSimplification() throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
testUnitaryPlusBug
public void testUnitaryPlusBug() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCommutative
public void testCommutative() throws JepException
- Throws:
JepException
-
testNegZero
public void testNegZero() throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
nomCommute
public void nomCommute() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testThreeArgumnet
public void testThreeArgumnet() throws java.lang.IllegalArgumentException, JepException
Simplification fails when an operator with three arguments is supplied. These can be constructed by the poynomial package- Throws:
java.lang.IllegalArgumentException
JepException
-
testMinus
public void testMinus() throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
testMigrate
public void testMigrate() throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
Integer_power
public void Integer_power() throws ParseException
- Throws:
ParseException
-
testInfinity
public void testInfinity() throws java.lang.IllegalArgumentException, JepException
- Throws:
java.lang.IllegalArgumentException
JepException
-
testDirtyFunctions
public void testDirtyFunctions() throws JepException
Checks that cleaner does not clean functions and operators marked withDirtyFunction
and does clean other functions and operators with constant arguments.- Throws:
JepException
-
testKummerExpansion
public void testKummerExpansion() throws JepException
- Throws:
JepException
-
-