Package com.singularsys.exttests
Class XJepDualTest
- java.lang.Object
-
- com.singularsys.jeptests.system.JepTest
-
- com.singularsys.exttests.XJepDualTest
-
public class XJepDualTest extends JepTest
Test with two different assignment operators
-
-
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
-
-
Constructor Summary
Constructors Constructor Description XJepDualTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanerTest(java.lang.String expr, java.lang.String expected)parses, processes and cleans both expression, tests toString are equalsjava.lang.StringparsePreprocSimp(java.lang.String expr)NodeparseProcCleanEval(java.lang.String expr, java.lang.Object expected)Parse, process, clean and evaluated tests equal to expectedvoidprocessCleanTestString(java.lang.String expr, java.lang.String expected)Parse, process, cleans expr test equal to expectedvoidsetUp()Sets up the parser.voidtestBad()voidtestCleaner()voidtestExpand()voidtestFormat()voidtestLogical()voidtestNull()voidtestOperatorTable()voidtestPrint()voidtestReentrant()voidtestSub()voidtestSymbolicAssign()voidtestTreeBuild()voidtestUndecVar()voidtestVarHasEquation()Test changed in extension 2.1.voidtestVariableReuse()voidtestVarInEqn()-
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_not_X_Y, testAssign, testBinom, testBlankParser, testCaseNull, testCaseString, testChangeVariable, testChangeVariableComplex, testComments, testComplex, testComplexListAccess, testEleUnit, testEmptyEqn, testEmptyEqn2, testEvalExceptions, testEvaluate, testEvaluateComplex, testEvaluateString, testExpectedTokenSequence, testFunction, testIf, testImplicitMul, testLazyLogical, testLazyLogical2, testLazyLogicalBug, testListAccess, testListAccessShiftZero, testListExtra, testListFunctions, testLogarithm, testMacroFunction, testMultiDimArray, testMultiDimArrayShiftZero, testMultiLine, testMultiplyBug, testNaN, testNoAssign, testNumberAsBooleanLogical, testNumbers, testNumParam, testParseException, testPlusPlus, testRecursiveMacroFunction, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testSpecialFunctions, testStrings, testStringsFun, testSwitch, testUminusPower, testX2Y, valueTest, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString
-
-
-
-
Field Detail
-
xj
protected XJep xj
-
-
Method Detail
-
setUp
public void setUp()
Description copied from class:JepTestSets up the parser.
-
testOperatorTable
public void testOperatorTable()
-
testVarHasEquation
public void testVarHasEquation() throws JepExceptionTest changed in extension 2.1. Setting a variable withz=5does not clear the equation.- Throws:
JepException
-
parsePreprocSimp
public java.lang.String parsePreprocSimp(java.lang.String expr) throws JepException- Throws:
JepException
-
processCleanTestString
public void processCleanTestString(java.lang.String expr, java.lang.String expected) throws JepExceptionParse, process, cleans expr test equal to expected- Parameters:
expr-expected-- Throws:
JepException
-
cleanerTest
public void cleanerTest(java.lang.String expr, java.lang.String expected) throws JepExceptionparses, processes and cleans both expression, tests toString are equals- Parameters:
expr-expected-- Throws:
JepException
-
parseProcCleanEval
public Node parseProcCleanEval(java.lang.String expr, java.lang.Object expected) throws ParseException, java.lang.Exception
Parse, process, clean and evaluated tests equal to expected- Parameters:
expr-expected-- Returns:
- Throws:
ParseExceptionjava.lang.Exception
-
testLogical
public void testLogical() throws java.lang.Exception- Overrides:
testLogicalin classJepTest- Throws:
java.lang.Exception
-
testPrint
public void testPrint() throws JepException- Throws:
JepException
-
testCleaner
public void testCleaner() throws JepException- Throws:
JepException
-
testExpand
public void testExpand() throws ParseException- Throws:
ParseException
-
testVariableReuse
public void testVariableReuse() throws java.lang.Exception- Throws:
java.lang.Exception
-
testReentrant
public void testReentrant() throws ParseException, java.lang.Exception- Throws:
ParseExceptionjava.lang.Exception
-
testFormat
public void testFormat() throws java.lang.Exception- Overrides:
testFormatin classJepTest- Throws:
java.lang.Exception
-
testVarInEqn
public void testVarInEqn() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUndecVar
public void testUndecVar() throws JepException- Throws:
JepException
-
testTreeBuild
public void testTreeBuild() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSub
public void testSub() throws java.lang.Exception- Throws:
java.lang.Exception
-
testNull
public void testNull() throws java.lang.Exception
-
testSymbolicAssign
public void testSymbolicAssign() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBad
public void testBad() throws java.lang.Exception- Throws:
java.lang.Exception
-
-