Package com.singularsys.jeptests.system

# 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:
  - `JavaOperatorTable`

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class com.singularsys.jeptests.system.JepTest

  `JepTest.AddFractionsNary, JepTest.AddFractionsStack, JepTest.Diff, JepTest.MyBinary, JepTest.MyNary, JepTest.MyNaryBinary, JepTest.MyNullary, JepTest.MyUnary, JepTest.PiFun, JepTest.Product, JepTest.Square`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final boolean`
  `PRINT_RESULTS`

  ### Fields inherited from class com.singularsys.jeptests.system.JepTest

  `jep, myFalse, myTrue`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ExtendedParserTest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `list_or_bracket_matcher_parses_bracketed_expressions()`
  `void`
  `prefix_suffix_operators_inside_single_arg_function_parses_correctly()`
  Test a combination of suffix operations with function for better coverage
  `void`
  `setUp()`
  Sets up the parser.
  `void`
  `test_not_X_Y()`
  `void`
  `test2010_03_01()`
  `void`
  `testAllOperatorHaveDescriptions()`
  `void`
  `testAlternateSymbols()`
  Tests for other symbols used.
  `void`
  `testBitwise()`
  `void`
  `testComplex()`
  `void`
  `testElementOf()`
  Tests operators and functions which test if an element is in array or list.
  `void`
  `testFactorial()`
  Test the suffix factorial operation
  `void`
  `testFunction()`
  `void`
  `testIfThenElse()`
  `void`
  `testIncrement()`
  `void`
  `testLazyLogical()`
  `void`
  `testLazyLogical2()`
  `void`
  `testLazyLogicalBug()`
  Test for bug with 1&&1&&1
  `void`
  `testListAccess()`
  `void`
  `testLogical()`
  `void`
  `testNoComplex()`
  `void`
  `testNumberAsBooleanLogical()`
  `void`
  `testNumParam()`
  `void`
  `testOpEquals()`
  `void`
  `testOverlappingNames()`
  Tests if we have a conflict between OR and ORGANIZE
  `void`
  `testPercent()`
  Tests the suffix % operation
  `void`
  `testPlusPlus()`
  `void`
  `testPowerSuffixOps()`
  `void`
  `testRealConfig()`
  `void`
  `testRecursiveMacroFunction()`
  `void`
  `testSingleArgFun()`
  Tests mathematical style "cos pi" functions without brackets.
  `void`
  `testStrings()`
  `void`
  `testSuffix()`
  Test a combination of suffix operations
  `void`
  `testTernary()`
  `void`
  `testToBase()`
  Test the various type conversion functions.
  `void`
  `testUpperCaseOperator()`
  Tests case-insensitive operator names AND, And, and.
  `void`
  `testX2Y()`

  ### Methods inherited from class com.singularsys.jeptests.system.JepTest

  `assertEqNodes, buildMatrix, buildVector, calcValue, calcValue, checkVector, compareRecursive, complexValueTest, getNumber, myAssertEquals, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, setShiftZeroElePfmc, test_adding_existing_constant_fails, test_parser_sets_parent, testAssign, testBinom, testBlankParser, testCaseNull, testCaseString, testChangeVariable, testChangeVariableComplex, testComments, testComplexListAccess, testEleUnit, testEmptyEqn, testEmptyEqn2, testEvalExceptions, testEvaluate, testEvaluateComplex, testEvaluateString, testExpectedTokenSequence, testFormat, testIf, testImplicitMul, testListAccessShiftZero, testListExtra, testListFunctions, testListOperations, testLogarithm, testMacroFunction, testMultiDimArray, testMultiDimArrayShiftZero, testMultiLine, testMultiplyBug, testNaN, testNoAssign, testNull, testNumbers, testParseException, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testSpecialFunctions, testStringsFun, testSwitch, testUminusPower, valueTest, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### PRINT_RESULTS

    public static final boolean PRINT_RESULTS

- ## 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:
      - `ElementOf`

  - ### testToBase

    @Test public void testToBase() throws Exception
    Test the various type conversion functions.
    Throws:
      `Exception`
    See Also:
      - `ToBase`
      - `FromBase`

  - ### testPercent

    @Test public void testPercent() throws Exception
    Tests the suffix % operation
    Throws:
      `Exception`
    See Also:
      - `ExtendedOperatorSet`

  - ### testFactorial

    @Test public void testFactorial() throws Exception
    Test the suffix factorial operation
    Throws:
      `Exception`
    See Also:
      - `Factorial`

  - ### 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:
      - `SingleArgFunctionMatcher`

  - ### 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`