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 void
cleanerTest(java.lang.String expr, java.lang.String expected)
parses, processes and cleans both expression, tests toString are equalsjava.lang.String
parsePreprocSimp(java.lang.String expr)
Node
parseProcCleanEval(java.lang.String expr, java.lang.Object expected)
Parse, process, clean and evaluated tests equal to expectedvoid
processCleanTestString(java.lang.String expr, java.lang.String expected)
Parse, process, cleans expr test equal to expectedvoid
setUp()
Sets up the parser.void
testBad()
void
testCleaner()
void
testExpand()
void
testFormat()
void
testLogical()
void
testNull()
void
testOperatorTable()
void
testPrint()
void
testReentrant()
void
testSub()
void
testSymbolicAssign()
void
testTreeBuild()
void
testUndecVar()
void
testVarHasEquation()
Test changed in extension 2.1.void
testVariableReuse()
void
testVarInEqn()
-
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:JepTest
Sets up the parser.
-
testOperatorTable
public void testOperatorTable()
-
testVarHasEquation
public void testVarHasEquation() throws JepException
Test changed in extension 2.1. Setting a variable withz=5
does 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 JepException
Parse, 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 JepException
parses, 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:
ParseException
java.lang.Exception
-
testLogical
public void testLogical() throws java.lang.Exception
- Overrides:
testLogical
in 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:
ParseException
java.lang.Exception
-
testFormat
public void testFormat() throws java.lang.Exception
- Overrides:
testFormat
in 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
-
-