Package com.singularsys.exttests
Class XJepTest
java.lang.Object
com.singularsys.jeptests.system.JepTest
com.singularsys.exttests.XJepTest
- Direct Known Subclasses:
DJepTest
Tests for the
XJep- Author:
- Rich Morris Created on 17-Apr-2005
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcleanerTest(String expr, String expected) parses, processes and cleans both expression, tests toString are equalsvoidparseProcCleanEval(String expr, Object expected) Parse, process, clean and evaluated tests equal to expectedvoidvoidprocessCleanTestString(String expr, String expected) Parse, process, cleans expr test equal to expectedvoidvoidsetUp()Sets up the parser.voidvoidvoidvoidThree different cases: XAssign with use equation == false, do nothing use equation == true, var on lhs, set vars equation use equation == true, LValueI on lhs do nothing use equation == true, SymbolicLValueI on lhs, call setEqn() check preprocessing workvoidvoidvoidvoidvoidChecks it uses DirtyRandomvoidvoidvoidtestNull()voidvoidvoidvoidvoidvoidtestSub()voidvoidvoidvoidvoidMethods inherited from class com.singularsys.jeptests.system.JepTest
assertEqNodes, buildMatrix, buildVector, calcValue, calcValue, checkVector, compareRecursive, complexValueTest, getNumber, myAssertEquals, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, setShiftZeroElePfmc, test_adding_existing_constant_fails, test_not_X_Y, test_parser_sets_parent, 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, testListOperations, 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 Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS -
xj
-
-
Constructor Details
-
XJepTest
public XJepTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp()Description copied from class:JepTestSets up the parser. -
testOperatorTable
@Test public void testOperatorTable() -
testFunctionTable
@Test public void testFunctionTable()Checks it uses DirtyRandom -
testFunctionTableWithExtraComponents
@Test public void testFunctionTableWithExtraComponents() -
testXFunctionTable_with_decorator_constructor
@Test public void testXFunctionTable_with_decorator_constructor() -
processCleanTestString
Parse, process, cleans expr test equal to expected- Parameters:
expr-expected-- Throws:
JepException
-
cleanerTest
parses, processes and cleans both expression, tests toString are equals- Parameters:
expr-expected-- Throws:
JepException
-
parseProcCleanEval
Parse, process, clean and evaluated tests equal to expected- Parameters:
expr-expected-- Returns:
- Throws:
ParseExceptionException
-
testLogical
- Overrides:
testLogicalin classJepTest- Throws:
Exception
-
testPrint
- Throws:
JepException
-
testCleaner
- Throws:
JepException
-
testExpand
- Throws:
ParseException
-
testVariableReuse
- Throws:
Exception
-
testReentrant
- Throws:
Exception
-
testFormat
- Overrides:
testFormatin classJepTest- Throws:
Exception
-
testVarInEqn
- Throws:
Exception
-
testUndecVar
- Throws:
JepException
-
testTreeBuild
- Throws:
Exception
-
testSub
- Throws:
Exception
-
test_sub_of_variable_with_equation
- Throws:
Exception
-
testNull
-
preprocess_function_cause_argument_to_be_preprocessed_at_eval_time
@Test public void preprocess_function_cause_argument_to_be_preprocessed_at_eval_time() throws JepException- Throws:
JepException
-
eval_function_cause_argument_to_be_evaluated_at_preprocessed_time
@Test public void eval_function_cause_argument_to_be_evaluated_at_preprocessed_time() throws JepException- Throws:
JepException
-
build_expression_step_by_step_using_preprocess_eval_and_eqn
- Throws:
JepException
-
run_preprocessor_commands
- Throws:
JepException
-
testSetupPreprocess_functions_using_xjep_constructor
- Throws:
JepException
-
testSetupPreprocess_functions_using_default_constructor
- Throws:
JepException
-
shallowcopy_of_preprocess_functions_are_new_instances_of_same_classes
@Test public void shallowcopy_of_preprocess_functions_are_new_instances_of_same_classes() throws JepException- Throws:
JepException
-
testBernstein
- Throws:
JepException
-
test_substitution_with_xvariable
- Throws:
JepException
-
test_xassign_with_preprocessor
Three different cases:- XAssign with use equation == false, do nothing
- use equation == true, var on lhs, set vars equation
- use equation == true, LValueI on lhs do nothing
- use equation == true, SymbolicLValueI on lhs, call setEqn()
- Throws:
JepException
-