Class ExtendedParserTest

java.lang.Object
com.singularsys.jeptests.system.JepTest
com.singularsys.jeptests.system.ExtendedParserTest

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

  • Constructor Details

    • ExtendedParserTest

      public ExtendedParserTest()
  • Method Details

    • setUp

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

      @Test public void testBitwise() throws Exception
      Throws:
      Exception
    • testTernary

      @Test public void testTernary() throws Exception
      Throws:
      Exception
    • testComplex

      @Disabled("Complex tests not implemented for ExtendedParser") @Test public void testComplex()
      Overrides:
      testComplex in class JepTest
    • testFunction

      @Disabled("Function tests not implemented for ExtendedParser") @Test public void testFunction()
      Overrides:
      testFunction in class JepTest
    • testPlusPlus

      @Disabled("3++2 tests not implemented for ExtendedParser as confused with increment/decrement ops") @Test public void testPlusPlus()
      Overrides:
      testPlusPlus in class JepTest
    • testPowerSuffixOps

      @Test public void testPowerSuffixOps() throws Exception
      Throws:
      Exception
    • testIncrement

      @Test public void testIncrement() throws Exception
      Throws:
      Exception
    • testOpEquals

      @Test public void testOpEquals() throws Exception
      Throws:
      Exception
    • testLogical

      @Disabled("Logical tests not implemented for ExtendedParser") @Test public void testLogical()
      Overrides:
      testLogical in class JepTest
    • testNumberAsBooleanLogical

      @Disabled("Logical tests not implemented for ExtendedParser") @Test public void testNumberAsBooleanLogical()
      Overrides:
      testNumberAsBooleanLogical in class JepTest
    • testLazyLogical

      @Disabled("Logical tests not implemented for ExtendedParser") @Test public void testLazyLogical()
      Overrides:
      testLazyLogical in class JepTest
    • testLazyLogical2

      @Disabled("Logical tests not implemented for ExtendedParser") @Test public void testLazyLogical2()
      Overrides:
      testLazyLogical2 in class JepTest
    • testNumParam

      @Disabled("Logical tests not implemented for ExtendedParser") @Test public void testNumParam()
      Overrides:
      testNumParam in class JepTest
    • testX2Y

      @Disabled("Tests with ^ for power not implemented for ExtendedParser") @Test public void testX2Y()
      Overrides:
      testX2Y in class JepTest
    • testStrings

      @Disabled("String tests not implemented for ExtendedParser") @Test public void testStrings()
      Overrides:
      testStrings in class JepTest
    • testUpperCaseOperator

      @Test public void testUpperCaseOperator() throws Exception
      Tests case-insensitive operator names AND, And, and.
      Throws:
      Exception
    • testIfThenElse

      @Test @Disabled("Fails needs work to implement") public void testIfThenElse() throws Exception
      Throws:
      Exception
    • testOverlappingNames

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

      @Test public void test2010_03_01() throws Exception
      Throws:
      Exception
    • testLazyLogicalBug

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

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

      @Test public void testToBase() throws Exception
      Test the various type conversion functions.
      Throws:
      Exception
      See Also:
    • testPercent

      @Test public void testPercent() throws Exception
      Tests the suffix % operation
      Throws:
      Exception
      See Also:
    • testFactorial

      @Test public void testFactorial() throws Exception
      Test the suffix factorial operation
      Throws:
      Exception
      See Also:
    • testSuffix

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

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

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

      @Test public void testSingleArgFun() throws Exception
      Tests mathematical style "cos pi" functions without brackets.
      Throws:
      Exception
      See Also:
    • testNoComplex

      @Test public void testNoComplex() throws JepException
      Throws:
      JepException
    • testRealConfig

      @Test public void testRealConfig() throws JepException
      Throws:
      JepException
    • testRecursiveMacroFunction

      @Test @Disabled("MacroFunction test not implements for ExtendedParser") public void testRecursiveMacroFunction()
      Overrides:
      testRecursiveMacroFunction in class JepTest
    • test_not_X_Y

      @Test @Disabled("!X Y test not implemented for ExtendedParser") public void test_not_X_Y()
      Overrides:
      test_not_X_Y in class JepTest
    • list_or_bracket_matcher_parses_bracketed_expressions

      @Test public void list_or_bracket_matcher_parses_bracketed_expressions() throws Exception
      Throws:
      Exception
    • testListAccess

      @Test public void testListAccess() throws Exception
      Overrides:
      testListAccess in class JepTest
      Throws:
      Exception
    • testAllOperatorHaveDescriptions

      @Tag("operator_descriptions") @Test public void testAllOperatorHaveDescriptions() throws IOException
      Throws:
      IOException