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 ClassesNested 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 inherited from class com.singularsys.jeptests.system.JepTest
jep, myFalse, myTrue, PRINT_RESULTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidTest a combination of suffix operations with function for better coveragevoidsetUp()Sets up the parser.voidvoidvoidTests 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 % operationvoidvoidvoidvoidTests 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, myAssertEquals, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, setShiftZeroElePfmc, 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, 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
-
Constructor Details
-
ExtendedParserTest
public ExtendedParserTest()
-
-
Method Details
-
setUp
public void setUp()Description copied from class:JepTestSets up the parser. -
testBitwise
- Throws:
Exception
-
testTernary
- Throws:
Exception
-
testComplex
public void testComplex()- Overrides:
testComplexin classJepTest
-
testFunction
public void testFunction()- Overrides:
testFunctionin classJepTest
-
testPlusPlus
public void testPlusPlus()- Overrides:
testPlusPlusin classJepTest
-
testIncrement
- Throws:
Exception
-
testOpEquals
- Throws:
Exception
-
testLogical
public void testLogical()- Overrides:
testLogicalin classJepTest
-
testNumberAsBooleanLogical
public void testNumberAsBooleanLogical()- Overrides:
testNumberAsBooleanLogicalin classJepTest
-
testLazyLogical
public void testLazyLogical()- Overrides:
testLazyLogicalin classJepTest
-
testLazyLogical2
public void testLazyLogical2()- Overrides:
testLazyLogical2in classJepTest
-
testNumParam
public void testNumParam()- Overrides:
testNumParamin classJepTest
-
testX2Y
public void testX2Y() -
testStrings
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. -
testToBase
Test the various type conversion functions. -
testPercent
Tests the suffix % operation- Throws:
Exception- See Also:
-
testFactorial
Test the suffix factorial operation -
testSuffix
Test a combination of suffix operations- Throws:
Exception
-
prefix_suffix_operators_inside_single_arg_function_parses_correctly
Test 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
public void testRecursiveMacroFunction()- Overrides:
testRecursiveMacroFunctionin classJepTest
-
test_not_X_Y
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
-