Package com.singularsys.exttests
Class PolynomialCreatorTest
- java.lang.Object
-
- com.singularsys.exttests.PolynomialCreatorTest
-
public class PolynomialCreatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected XJep
jep
protected PolynomialCreator
pc
static boolean
SHOW_BAD
protected SubstitutionVisitor
sv
-
Constructor Summary
Constructors Constructor Description PolynomialCreatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertPolynomialEquals(java.lang.String s1, java.lang.String s2)
void
expandTestString(java.lang.String expr, java.lang.String expected)
void
myAssertEquals(java.lang.String msg, java.lang.String actual, java.lang.String expected)
void
setUp()
void
simplifyTest(java.lang.String expr, java.lang.String expected)
void
simplifyTestString(java.lang.String expr, java.lang.String expected)
void
simplifyTestString2(java.lang.String expr, java.lang.String expected, java.lang.String expt2)
void
simplifyTestString3(java.lang.String expr, java.lang.String expected, java.lang.String expt2, java.lang.String expt3)
void
test_compare_uses_preprocessed_aruments()
void
test_serialization_of_elements()
void
test7dim()
void
testAdd()
void
testBad()
void
testCommute()
void
testCompare()
void
testCreatePoly()
void
testDirtyFunctions()
Checks that simplify/expand does not clean functions and operators marked withDirtyFunction
and does clean other functions and operators with constant arguments.void
testExpandOperator()
void
testExpandToNode()
The expand.toNode has problems with uminusvoid
testMonomial()
void
testPolyDiffSimp()
void
testPolySigns()
Check that it does not create a polynomial like x+-yvoid
testPolySimp()
void
testPolySimp2()
void
testPrint()
void
testSimp()
void
testSimpleEquals()
void
testToArray()
void
testToCoefficientArray()
void
testTotalOrder()
The total ordering of monomials/polynomials mean that terms are rearranged.void
testUnitaryPlusBug()
-
-
-
Field Detail
-
SHOW_BAD
public static final boolean SHOW_BAD
- See Also:
- Constant Field Values
-
jep
protected XJep jep
-
pc
protected PolynomialCreator pc
-
sv
protected SubstitutionVisitor sv
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
myAssertEquals
public void myAssertEquals(java.lang.String msg, java.lang.String actual, java.lang.String expected)
-
assertPolynomialEquals
public void assertPolynomialEquals(java.lang.String s1, java.lang.String s2) throws java.lang.Exception
- Throws:
java.lang.Exception
-
simplifyTest
public void simplifyTest(java.lang.String expr, java.lang.String expected) throws java.lang.Exception
- Throws:
java.lang.Exception
-
simplifyTestString
public void simplifyTestString(java.lang.String expr, java.lang.String expected) throws java.lang.Exception
- Throws:
java.lang.Exception
-
simplifyTestString2
public void simplifyTestString2(java.lang.String expr, java.lang.String expected, java.lang.String expt2) throws java.lang.Exception
- Throws:
java.lang.Exception
-
simplifyTestString3
public void simplifyTestString3(java.lang.String expr, java.lang.String expected, java.lang.String expt2, java.lang.String expt3) throws java.lang.Exception
- Throws:
java.lang.Exception
-
expandTestString
public void expandTestString(java.lang.String expr, java.lang.String expected) throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPrint
public void testPrint() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testMonomial
public void testMonomial() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSimp
public void testSimp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCommute
public void testCommute() throws ParseException, java.lang.Exception
- Throws:
ParseException
java.lang.Exception
-
testPolySimp
public void testPolySimp() throws ParseException, java.lang.Exception
- Throws:
ParseException
java.lang.Exception
-
testPolyDiffSimp
public void testPolyDiffSimp() throws ParseException, java.lang.Exception
- Throws:
ParseException
java.lang.Exception
-
testTotalOrder
public void testTotalOrder() throws ParseException, java.lang.Exception
The total ordering of monomials/polynomials mean that terms are rearranged.- Throws:
ParseException
java.lang.Exception
-
testCompare
public void testCompare() throws ParseException, java.lang.Exception
- Throws:
ParseException
java.lang.Exception
-
testPolySimp2
public void testPolySimp2() throws ParseException, java.lang.Exception
- Throws:
ParseException
java.lang.Exception
-
testExpandToNode
public void testExpandToNode() throws java.lang.Exception
The expand.toNode has problems with uminus- Throws:
java.lang.Exception
-
testDirtyFunctions
public void testDirtyFunctions() throws JepException
Checks that simplify/expand does not clean functions and operators marked withDirtyFunction
and does clean other functions and operators with constant arguments.- Throws:
JepException
-
testSimpleEquals
public void testSimpleEquals() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testToArray
public void testToArray() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testToCoefficientArray
public void testToCoefficientArray() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testUnitaryPlusBug
public void testUnitaryPlusBug() throws java.lang.Exception
- Throws:
java.lang.Exception
-
test7dim
public void test7dim() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCreatePoly
public void testCreatePoly() throws JepException
- Throws:
JepException
-
testAdd
public void testAdd() throws ParseException, JepException
- Throws:
ParseException
JepException
-
testPolySigns
public void testPolySigns() throws java.lang.Exception
Check that it does not create a polynomial like x+-y- Throws:
java.lang.Exception
-
testExpandOperator
public void testExpandOperator() throws java.lang.Exception
- Throws:
java.lang.Exception
-
test_compare_uses_preprocessed_aruments
public void test_compare_uses_preprocessed_aruments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
test_serialization_of_elements
public void test_serialization_of_elements() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testBad
public void testBad() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-