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 inherited from class com.singularsys.jeptests.system.JepTest
jep, myFalse, myTrue, PRINT_RESULTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Test a combination of suffix operations with function for better coveragevoid
setUp()
Sets up the parser.void
void
void
Tests for other symbols used.void
void
void
Tests operators and functions which test if an element is in array or list.void
Test the suffix factorial operationvoid
void
void
void
void
void
Test for bug with 1&&1&&1void
void
void
void
void
void
void
Tests if we have a conflict between OR and ORGANIZEvoid
Tests the suffix % operationvoid
void
void
void
Tests mathematical style "cos pi" functions without brackets.void
void
Test a combination of suffix operationsvoid
void
Test the various type conversion functions.void
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, 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:JepTest
Sets up the parser. -
testBitwise
- Throws:
Exception
-
testTernary
- Throws:
Exception
-
testComplex
public void testComplex()- Overrides:
testComplex
in classJepTest
-
testFunction
public void testFunction()- Overrides:
testFunction
in classJepTest
-
testPlusPlus
public void testPlusPlus()- Overrides:
testPlusPlus
in classJepTest
-
testIncrement
- Throws:
Exception
-
testOpEquals
- Throws:
Exception
-
testLogical
public void testLogical()- Overrides:
testLogical
in classJepTest
-
testNumberAsBooleanLogical
public void testNumberAsBooleanLogical()- Overrides:
testNumberAsBooleanLogical
in classJepTest
-
testLazyLogical
public void testLazyLogical()- Overrides:
testLazyLogical
in classJepTest
-
testLazyLogical2
public void testLazyLogical2()- Overrides:
testLazyLogical2
in classJepTest
-
testNumParam
public void testNumParam()- Overrides:
testNumParam
in classJepTest
-
testX2Y
public void testX2Y() -
testStrings
public void testStrings()- Overrides:
testStrings
in 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:JepTest
Test for bug with 1&&1&&1- Overrides:
testLazyLogicalBug
in 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:
testRecursiveMacroFunction
in classJepTest
-
test_not_X_Y
public void test_not_X_Y()- Overrides:
test_not_X_Y
in classJepTest
-
list_or_bracket_matcher_parses_bracketed_expressions
- Throws:
Exception
-
testListAccess
- Overrides:
testListAccess
in classJepTest
- Throws:
Exception
-