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 Modifier and Type Class Description static class
ExtendedParserTest.InOperators
-
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
Constructors Constructor Description ExtendedParserTest()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 coveragevoid
setUp()
Sets up the parser.void
test_not_X_Y()
void
test2010_03_01()
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 operationvoid
testFunction()
void
testIfThenElse()
void
testIncrement()
void
testLazyLogical()
void
testLazyLogical2()
void
testLazyLogicalBug()
Test for bug with 1&&1&&1void
testListAccess()
void
testLogical()
void
testNoComplex()
void
testNumberAsBooleanLogical()
void
testNumParam()
void
testOpEquals()
void
testOverlappingNames()
Tests if we have a conflict between OR and ORGANIZEvoid
testPercent()
Tests the suffix % operationvoid
testPlusPlus()
void
testRealConfig()
void
testRecursiveMacroFunction()
void
testSingleArgFun()
Tests mathematical style "cos pi" functions without brackets.void
testStrings()
void
testSuffix()
Test a combination of suffix operationsvoid
testTernary()
void
testToBase()
Test the various type conversion functions.void
testUpperCaseOperator()
Tests case-intensative 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, 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
-
-
-
-
Method Detail
-
setUp
public void setUp()
Description copied from class:JepTest
Sets up the parser.
-
testBitwise
public void testBitwise() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testTernary
public void testTernary() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testComplex
public void testComplex() throws java.lang.Exception
- Overrides:
testComplex
in classJepTest
- Throws:
java.lang.Exception
-
testFunction
public void testFunction() throws java.lang.Exception
- Overrides:
testFunction
in classJepTest
- Throws:
java.lang.Exception
-
testPlusPlus
public void testPlusPlus() throws java.lang.Exception
- Overrides:
testPlusPlus
in classJepTest
- Throws:
java.lang.Exception
-
testIncrement
public void testIncrement() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testOpEquals
public void testOpEquals() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLogical
public void testLogical() throws java.lang.Exception
- Overrides:
testLogical
in classJepTest
- Throws:
java.lang.Exception
-
testNumberAsBooleanLogical
public void testNumberAsBooleanLogical() throws java.lang.Exception
- Overrides:
testNumberAsBooleanLogical
in classJepTest
- Throws:
java.lang.Exception
-
testLazyLogical
public void testLazyLogical() throws java.lang.Exception
- Overrides:
testLazyLogical
in classJepTest
- Throws:
java.lang.Exception
-
testLazyLogical2
public void testLazyLogical2() throws java.lang.Exception
- Overrides:
testLazyLogical2
in classJepTest
- Throws:
java.lang.Exception
-
testNumParam
public void testNumParam() throws java.lang.Exception
- Overrides:
testNumParam
in classJepTest
- Throws:
java.lang.Exception
-
testX2Y
public void testX2Y() throws java.lang.Exception
-
testStrings
public void testStrings() throws java.lang.Exception
- Overrides:
testStrings
in classJepTest
- Throws:
java.lang.Exception
-
testUpperCaseOperator
public void testUpperCaseOperator() throws java.lang.Exception
Tests case-intensative operator names AND, And, and.- Throws:
java.lang.Exception
-
testIfThenElse
public void testIfThenElse() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testOverlappingNames
public void testOverlappingNames() throws java.lang.Exception
Tests if we have a conflict between OR and ORGANIZE- Throws:
java.lang.Exception
-
test2010_03_01
public void test2010_03_01() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLazyLogicalBug
public void testLazyLogicalBug() throws java.lang.Exception
Description copied from class:JepTest
Test for bug with 1&&1&&1- Overrides:
testLazyLogicalBug
in classJepTest
- Throws:
java.lang.Exception
-
testElementOf
public void testElementOf() throws java.lang.Exception
Tests operators and functions which test if an element is in array or list.- Throws:
java.lang.Exception
- See Also:
ElementOf
-
testToBase
public void testToBase() throws java.lang.Exception
Test the various type conversion functions.
-
testPercent
public void testPercent() throws java.lang.Exception
Tests the suffix % operation- Throws:
java.lang.Exception
- See Also:
ExtendedOperatorSet
-
testFactorial
public void testFactorial() throws java.lang.Exception
Test the suffix factorial operation- Throws:
java.lang.Exception
- See Also:
Factorial
-
testSuffix
public void testSuffix() throws java.lang.Exception
Test a combination of suffix operations- Throws:
java.lang.Exception
-
prefix_suffix_operators_inside_single_arg_function_parses_correctly
public void prefix_suffix_operators_inside_single_arg_function_parses_correctly() throws java.lang.Exception
Test a combination of suffix operations with function for better coverage- Throws:
java.lang.Exception
-
testAlternateSymbols
public void testAlternateSymbols() throws java.lang.Exception
Tests for other symbols used. Minus sign is actually unicode U+2013- Throws:
java.lang.Exception
-
testSingleArgFun
public void testSingleArgFun() throws java.lang.Exception
Tests mathematical style "cos pi" functions without brackets.- Throws:
java.lang.Exception
- See Also:
SingleArgFunctionMatcher
-
testNoComplex
public void testNoComplex() throws JepException
- Throws:
JepException
-
testRealConfig
public void testRealConfig() throws JepException
- Throws:
JepException
-
testRecursiveMacroFunction
public void testRecursiveMacroFunction() throws java.lang.Exception
- Overrides:
testRecursiveMacroFunction
in classJepTest
- Throws:
java.lang.Exception
-
test_not_X_Y
public void test_not_X_Y() throws java.lang.Exception
- Overrides:
test_not_X_Y
in classJepTest
- Throws:
java.lang.Exception
-
list_or_bracket_matcher_parses_bracketed_expressions
public void list_or_bracket_matcher_parses_bracketed_expressions() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testListAccess
public void testListAccess() throws java.lang.Exception
- Overrides:
testListAccess
in classJepTest
- Throws:
java.lang.Exception
-
-