Class PolynomialCreatorTest


  • public class PolynomialCreatorTest
    extends java.lang.Object
    • Constructor Detail

      • PolynomialCreatorTest

        public PolynomialCreatorTest()
    • 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
      • 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
      • 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 with DirtyFunction 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
      • 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