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 voidInteger_power()voidmyAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual)Assertion with message on command line.voidnomCommute()java.lang.StringparsePreprocSimp(java.lang.String expr)NodeparseProcSimpEval(java.lang.String expr, java.lang.Object expected)voidsetUp()voidsimplifyTest(java.lang.String expr, java.lang.String expected)voidsimplifyTestString(java.lang.String expr, java.lang.String expected)voidtestCommutative()voidtestDirtyFunctions()Checks that cleaner does not clean functions and operators marked withDirtyFunctionand does clean other functions and operators with constant arguments.voidtestInfinity()voidtestKummerExpansion()voidtestMigrate()voidtestMinus()voidtestNegZero()voidtestSimplification()voidtestThreeArgumnet()Simplification fails when an operator with three arguments is supplied.voidtestUnitaryPlusBug()
-
-
-
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.IllegalArgumentExceptionJepException
-
simplifyTestString
public void simplifyTestString(java.lang.String expr, java.lang.String expected) throws java.lang.IllegalArgumentException, JepException- Throws:
java.lang.IllegalArgumentExceptionJepException
-
simplifyTest
public void simplifyTest(java.lang.String expr, java.lang.String expected) throws java.lang.IllegalArgumentException, JepException- Throws:
java.lang.IllegalArgumentExceptionJepException
-
parseProcSimpEval
public Node parseProcSimpEval(java.lang.String expr, java.lang.Object expected) throws ParseException, java.lang.Exception
- Throws:
ParseExceptionjava.lang.Exception
-
testSimplification
public void testSimplification() throws java.lang.IllegalArgumentException, JepException- Throws:
java.lang.IllegalArgumentExceptionJepException
-
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.IllegalArgumentExceptionJepException
-
nomCommute
public void nomCommute() throws java.lang.Exception- Throws:
java.lang.Exception
-
testThreeArgumnet
public void testThreeArgumnet() throws java.lang.IllegalArgumentException, JepExceptionSimplification fails when an operator with three arguments is supplied. These can be constructed by the poynomial package- Throws:
java.lang.IllegalArgumentExceptionJepException
-
testMinus
public void testMinus() throws java.lang.IllegalArgumentException, JepException- Throws:
java.lang.IllegalArgumentExceptionJepException
-
testMigrate
public void testMigrate() throws java.lang.IllegalArgumentException, JepException- Throws:
java.lang.IllegalArgumentExceptionJepException
-
Integer_power
public void Integer_power() throws ParseException- Throws:
ParseException
-
testInfinity
public void testInfinity() throws java.lang.IllegalArgumentException, JepException- Throws:
java.lang.IllegalArgumentExceptionJepException
-
testDirtyFunctions
public void testDirtyFunctions() throws JepExceptionChecks that cleaner does not clean functions and operators marked withDirtyFunctionand does clean other functions and operators with constant arguments.- Throws:
JepException
-
testKummerExpansion
public void testKummerExpansion() throws JepException- Throws:
JepException
-
-