Package com.singularsys.jeptests.system
Class ExtendedParserTest
java.lang.Object
com.singularsys.jeptests.system.JepTest
com.singularsys.jeptests.system.ExtendedParserTest
Tests for modification to the configurable parser. Including adding new
operators.
- See Also:
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidTest a combination of suffix operations with function for better coveragevoidsetUp()Sets up the parser.voidvoidvoidvoidTests for other symbols used.voidvoidvoidTests operators and functions which test if an element is in array or list.voidTest the suffix factorial operationvoidvoidvoidvoidvoidvoidTest for bug with 1&&1&&1voidvoidvoidvoidvoidvoidvoidTests if we have a conflict between OR and ORGANIZEvoidTests the suffix % operationvoidvoidvoidvoidvoidTests mathematical style "cos pi" functions without brackets.voidvoidTest a combination of suffix operationsvoidvoidTest the various type conversion functions.voidTests case-insensitive operator names AND, And, and.voidtestX2Y()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
-
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:JepTestSets up the parser. -
testBitwise
- Throws:
Exception
-
testTernary
- Throws:
Exception
-
testComplex
@Disabled("Complex tests not implemented for ExtendedParser") @Test public void testComplex()- Overrides:
testComplexin classJepTest
-
testFunction
@Disabled("Function tests not implemented for ExtendedParser") @Test public void testFunction()- Overrides:
testFunctionin classJepTest
-
testPlusPlus
@Disabled("3++2 tests not implemented for ExtendedParser as confused with increment/decrement ops") @Test public void testPlusPlus()- Overrides:
testPlusPlusin classJepTest
-
testPowerSuffixOps
- Throws:
Exception
-
testIncrement
- Throws:
Exception
-
testOpEquals
- Throws:
Exception
-
testLogical
@Disabled("Logical tests not implemented for ExtendedParser") @Test public void testLogical()- Overrides:
testLogicalin classJepTest
-
testNumberAsBooleanLogical
@Disabled("Logical tests not implemented for ExtendedParser") @Test public void testNumberAsBooleanLogical()- Overrides:
testNumberAsBooleanLogicalin classJepTest
-
testLazyLogical
@Disabled("Logical tests not implemented for ExtendedParser") @Test public void testLazyLogical()- Overrides:
testLazyLogicalin classJepTest
-
testLazyLogical2
@Disabled("Logical tests not implemented for ExtendedParser") @Test public void testLazyLogical2()- Overrides:
testLazyLogical2in classJepTest
-
testNumParam
@Disabled("Logical tests not implemented for ExtendedParser") @Test public void testNumParam()- Overrides:
testNumParamin classJepTest
-
testX2Y
@Disabled("Tests with ^ for power not implemented for ExtendedParser") @Test public void testX2Y() -
testStrings
@Disabled("String tests not implemented for ExtendedParser") @Test public void testStrings()- Overrides:
testStringsin classJepTest
-
testUpperCaseOperator
Tests case-insensitive operator names AND, And, and.- Throws:
Exception
-
testIfThenElse
- Throws:
Exception
-
testOverlappingNames
Tests if we have a conflict between OR and ORGANIZE- Throws:
Exception
-
test2010_03_01
- Throws:
Exception
-
testLazyLogicalBug
Description copied from class:JepTestTest for bug with 1&&1&&1- Overrides:
testLazyLogicalBugin classJepTest- Throws:
Exception
-
testElementOf
Tests operators and functions which test if an element is in array or list.- Throws:
Exception- See Also:
-
testToBase
Test the various type conversion functions.- Throws:
Exception- See Also:
-
testPercent
Tests the suffix % operation- Throws:
Exception- See Also:
-
testFactorial
Test the suffix factorial operation- Throws:
Exception- See Also:
-
testSuffix
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 ExceptionTest a combination of suffix operations with function for better coverage- Throws:
Exception
-
testAlternateSymbols
Tests for other symbols used. Minus sign is actually unicode U+2013- Throws:
Exception
-
testSingleArgFun
Tests mathematical style "cos pi" functions without brackets.- Throws:
Exception- See Also:
-
testNoComplex
- Throws:
JepException
-
testRealConfig
- Throws:
JepException
-
testRecursiveMacroFunction
@Test @Disabled("MacroFunction test not implements for ExtendedParser") public void testRecursiveMacroFunction()- Overrides:
testRecursiveMacroFunctionin classJepTest
-
test_not_X_Y
@Test @Disabled("!X Y test not implemented for ExtendedParser") public void test_not_X_Y()- Overrides:
test_not_X_Yin classJepTest
-
list_or_bracket_matcher_parses_bracketed_expressions
- Throws:
Exception
-
testListAccess
- Overrides:
testListAccessin classJepTest- Throws:
Exception
-
testAllOperatorHaveDescriptions
@Tag("operator_descriptions") @Test public void testAllOperatorHaveDescriptions() throws IOException- Throws:
IOException
-