Class ExtendedParserTest


  • public class ExtendedParserTest
    extends JepTest
    Tests for modification to the configurable parser. Including adding new operators.
    See Also:
    JavaOperatorTable
    • Constructor Detail

      • ExtendedParserTest

        public ExtendedParserTest()
    • Method Detail

      • setUp

        public void setUp()
        Description copied from class: JepTest
        Sets up the parser.
        Overrides:
        setUp in class JepTest
      • testBitwise

        public void testBitwise()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTernary

        public void testTernary()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testComplex

        public void testComplex()
                         throws java.lang.Exception
        Overrides:
        testComplex in class JepTest
        Throws:
        java.lang.Exception
      • testFunction

        public void testFunction()
                          throws java.lang.Exception
        Overrides:
        testFunction in class JepTest
        Throws:
        java.lang.Exception
      • testPlusPlus

        public void testPlusPlus()
                          throws java.lang.Exception
        Overrides:
        testPlusPlus in class JepTest
        Throws:
        java.lang.Exception
      • testIncrement

        public void testIncrement()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOpEquals

        public void testOpEquals()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLogical

        public void testLogical()
                         throws java.lang.Exception
        Overrides:
        testLogical in class JepTest
        Throws:
        java.lang.Exception
      • testNumberAsBooleanLogical

        public void testNumberAsBooleanLogical()
                                        throws java.lang.Exception
        Overrides:
        testNumberAsBooleanLogical in class JepTest
        Throws:
        java.lang.Exception
      • testLazyLogical

        public void testLazyLogical()
                             throws java.lang.Exception
        Overrides:
        testLazyLogical in class JepTest
        Throws:
        java.lang.Exception
      • testLazyLogical2

        public void testLazyLogical2()
                              throws java.lang.Exception
        Overrides:
        testLazyLogical2 in class JepTest
        Throws:
        java.lang.Exception
      • testNumParam

        public void testNumParam()
                          throws java.lang.Exception
        Overrides:
        testNumParam in class JepTest
        Throws:
        java.lang.Exception
      • testX2Y

        public void testX2Y()
                     throws java.lang.Exception
        Overrides:
        testX2Y in class JepTest
        Throws:
        java.lang.Exception
      • testStrings

        public void testStrings()
                         throws java.lang.Exception
        Overrides:
        testStrings in class JepTest
        Throws:
        java.lang.Exception
      • testUpperCaseOperator

        public void testUpperCaseOperator()
                                   throws java.lang.Exception
        Tests case-intensative operator names AND, And, and.
        Throws:
        java.lang.Exception
      • testIfThenElse

        public void testIfThenElse()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOverlappingNames

        public void testOverlappingNames()
                                  throws java.lang.Exception
        Tests if we have a conflict between OR and ORGANIZE
        Throws:
        java.lang.Exception
      • test2010_03_01

        public void test2010_03_01()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLazyLogicalBug

        public void testLazyLogicalBug()
                                throws java.lang.Exception
        Description copied from class: JepTest
        Test for bug with 1&&1&&1
        Overrides:
        testLazyLogicalBug in class JepTest
        Throws:
        java.lang.Exception
      • testElementOf

        public void testElementOf()
                           throws java.lang.Exception
        Tests operators and functions which test if an element is in array or list.
        Throws:
        java.lang.Exception
        See Also:
        ElementOf
      • testToBase

        public void testToBase()
                        throws java.lang.Exception
        Test the various type conversion functions.
        Throws:
        java.lang.Exception
        See Also:
        ToBase, FromBase
      • testPercent

        public void testPercent()
                         throws java.lang.Exception
        Tests the suffix % operation
        Throws:
        java.lang.Exception
        See Also:
        ExtendedOperatorSet
      • testFactorial

        public void testFactorial()
                           throws java.lang.Exception
        Test the suffix factorial operation
        Throws:
        java.lang.Exception
        See Also:
        Factorial
      • testSuffix

        public void testSuffix()
                        throws java.lang.Exception
        Test a combination of suffix operations
        Throws:
        java.lang.Exception
      • prefix_suffix_operators_inside_single_arg_function_parses_correctly

        public void prefix_suffix_operators_inside_single_arg_function_parses_correctly()
                                                                                 throws java.lang.Exception
        Test a combination of suffix operations with function for better coverage
        Throws:
        java.lang.Exception
      • testAlternateSymbols

        public void testAlternateSymbols()
                                  throws java.lang.Exception
        Tests for other symbols used. Minus sign is actually unicode U+2013
        Throws:
        java.lang.Exception
      • testSingleArgFun

        public void testSingleArgFun()
                              throws java.lang.Exception
        Tests mathematical style "cos pi" functions without brackets.
        Throws:
        java.lang.Exception
        See Also:
        SingleArgFunctionMatcher
      • testRecursiveMacroFunction

        public void testRecursiveMacroFunction()
                                        throws java.lang.Exception
        Overrides:
        testRecursiveMacroFunction in class JepTest
        Throws:
        java.lang.Exception
      • test_not_X_Y

        public void test_not_X_Y()
                          throws java.lang.Exception
        Overrides:
        test_not_X_Y in class JepTest
        Throws:
        java.lang.Exception
      • list_or_bracket_matcher_parses_bracketed_expressions

        public void list_or_bracket_matcher_parses_bracketed_expressions()
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testListAccess

        public void testListAccess()
                            throws java.lang.Exception
        Overrides:
        testListAccess in class JepTest
        Throws:
        java.lang.Exception