Class CleanerTest

    • Constructor Detail

      • CleanerTest

        public CleanerTest()
    • 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 display
        expected - expected result
        actual - 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
      • 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
      • 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 with DirtyFunction and does clean other functions and operators with constant arguments.
        Throws:
        JepException