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 classExtendedParserTest.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 voidlist_or_bracket_matcher_parses_bracketed_expressions()voidprefix_suffix_operators_inside_single_arg_function_parses_correctly()Test a combination of suffix operations with function for better coveragevoidsetUp()Sets up the parser.voidtest_not_X_Y()voidtest2010_03_01()voidtestAlternateSymbols()Tests for other symbols used.voidtestBitwise()voidtestComplex()voidtestElementOf()Tests operators and functions which test if an element is in array or list.voidtestFactorial()Test the suffix factorial operationvoidtestFunction()voidtestIfThenElse()voidtestIncrement()voidtestLazyLogical()voidtestLazyLogical2()voidtestLazyLogicalBug()Test for bug with 1&&1&&1voidtestListAccess()voidtestLogical()voidtestNoComplex()voidtestNumberAsBooleanLogical()voidtestNumParam()voidtestOpEquals()voidtestOverlappingNames()Tests if we have a conflict between OR and ORGANIZEvoidtestPercent()Tests the suffix % operationvoidtestPlusPlus()voidtestRealConfig()voidtestRecursiveMacroFunction()voidtestSingleArgFun()Tests mathematical style "cos pi" functions without brackets.voidtestStrings()voidtestSuffix()Test a combination of suffix operationsvoidtestTernary()voidtestToBase()Test the various type conversion functions.voidtestUpperCaseOperator()Tests case-intensative 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, 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:JepTestSets 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:
testComplexin classJepTest- Throws:
java.lang.Exception
-
testFunction
public void testFunction() throws java.lang.Exception- Overrides:
testFunctionin classJepTest- Throws:
java.lang.Exception
-
testPlusPlus
public void testPlusPlus() throws java.lang.Exception- Overrides:
testPlusPlusin 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:
testLogicalin classJepTest- Throws:
java.lang.Exception
-
testNumberAsBooleanLogical
public void testNumberAsBooleanLogical() throws java.lang.Exception- Overrides:
testNumberAsBooleanLogicalin classJepTest- Throws:
java.lang.Exception
-
testLazyLogical
public void testLazyLogical() throws java.lang.Exception- Overrides:
testLazyLogicalin classJepTest- Throws:
java.lang.Exception
-
testLazyLogical2
public void testLazyLogical2() throws java.lang.Exception- Overrides:
testLazyLogical2in classJepTest- Throws:
java.lang.Exception
-
testNumParam
public void testNumParam() throws java.lang.Exception- Overrides:
testNumParamin classJepTest- Throws:
java.lang.Exception
-
testX2Y
public void testX2Y() throws java.lang.Exception
-
testStrings
public void testStrings() throws java.lang.Exception- Overrides:
testStringsin classJepTest- Throws:
java.lang.Exception
-
testUpperCaseOperator
public void testUpperCaseOperator() throws java.lang.ExceptionTests 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.ExceptionTests 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.ExceptionDescription copied from class:JepTestTest for bug with 1&&1&&1- Overrides:
testLazyLogicalBugin classJepTest- Throws:
java.lang.Exception
-
testElementOf
public void testElementOf() throws java.lang.ExceptionTests 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.ExceptionTest the various type conversion functions.
-
testPercent
public void testPercent() throws java.lang.ExceptionTests the suffix % operation- Throws:
java.lang.Exception- See Also:
ExtendedOperatorSet
-
testFactorial
public void testFactorial() throws java.lang.ExceptionTest the suffix factorial operation- Throws:
java.lang.Exception- See Also:
Factorial
-
testSuffix
public void testSuffix() throws java.lang.ExceptionTest 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.ExceptionTest a combination of suffix operations with function for better coverage- Throws:
java.lang.Exception
-
testAlternateSymbols
public void testAlternateSymbols() throws java.lang.ExceptionTests for other symbols used. Minus sign is actually unicode U+2013- Throws:
java.lang.Exception
-
testSingleArgFun
public void testSingleArgFun() throws java.lang.ExceptionTests 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:
testRecursiveMacroFunctionin classJepTest- Throws:
java.lang.Exception
-
test_not_X_Y
public void test_not_X_Y() throws java.lang.Exception- Overrides:
test_not_X_Yin 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:
testListAccessin classJepTest- Throws:
java.lang.Exception
-
-