Package com.singularsys.exttests.field
Class ComplexFieldTest
- java.lang.Object
-
- com.singularsys.jeptests.system.JepTest
-
- com.singularsys.exttests.field.FieldTest
-
- com.singularsys.exttests.field.ComplexFieldTest
-
public class ComplexFieldTest extends FieldTest
-
-
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 inherited from class com.singularsys.jeptests.system.JepTest
jep, myFalse, myTrue, PRINT_RESULTS
-
-
Constructor Summary
Constructors Constructor Description ComplexFieldTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
myAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual)
protected void
myAssertNaN(java.lang.String msg, java.lang.Object actual)
void
setUp()
Sets up the parser.void
test_not_X_Y()
void
testAllFun()
void
testBinom()
void
testCaseNull()
void
testCaseString()
void
testComplex()
void
testComplexFunctionTable()
void
testEvaluate()
Tests the evaluate() method.void
testFieldBinomial()
void
testFormat()
void
testFunction()
void
testIf()
void
testLazyLogical()
void
testLazyLogicalBug()
Test for bug with 1&&1&&1void
testLogarithm()
void
testLogical()
void
testNaN()
void
testNumberAsBooleanLogical()
void
testRecursiveMacroFunction()
void
testSpecialFunctions()
void
testStrings()
void
testStringsFun()
void
testSwitch()
protected void
valueTest(java.lang.String expr, double a, double tol)
Test values to within a given precision-
Methods inherited from class com.singularsys.exttests.field.FieldTest
setShiftZeroElePfmc, testComplexListAccess, testIllegalCalc, testListAccess, testListAccessShiftZero, testListExtra, testListFunctions, testMultiDimArray, testMultiDimArrayShiftZero
-
Methods inherited from class com.singularsys.jeptests.system.JepTest
assertEqNodes, buildMatrix, buildVector, calcValue, calcValue, checkVector, compareRecursive, complexValueTest, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, testAssign, testBlankParser, testChangeVariable, testChangeVariableComplex, testComments, testEleUnit, testEmptyEqn, testEmptyEqn2, testEvalExceptions, testEvaluateComplex, testEvaluateString, testExpectedTokenSequence, testImplicitMul, testLazyLogical2, testMacroFunction, testMultiLine, testMultiplyBug, testNoAssign, testNull, testNumbers, testNumParam, testParseException, testPlusPlus, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testUminusPower, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString
-
-
-
-
Method Detail
-
setUp
public void setUp()
Description copied from class:JepTest
Sets up the parser.
-
myAssertEquals
public void myAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual) throws EvaluationException
- Overrides:
myAssertEquals
in classJepTest
- Throws:
EvaluationException
-
valueTest
protected void valueTest(java.lang.String expr, double a, double tol) throws java.lang.Exception
Description copied from class:JepTest
Test values to within a given precision
-
myAssertNaN
protected void myAssertNaN(java.lang.String msg, java.lang.Object actual)
- Overrides:
myAssertNaN
in classJepTest
-
testFieldBinomial
public void testFieldBinomial() throws JepException
- Overrides:
testFieldBinomial
in classFieldTest
- Throws:
JepException
-
testBinom
public void testBinom() throws ParseException, java.lang.Exception
- Overrides:
testBinom
in classJepTest
- Throws:
ParseException
java.lang.Exception
-
testCaseString
public void testCaseString() throws java.lang.Exception
- Overrides:
testCaseString
in classJepTest
- Throws:
java.lang.Exception
-
testNaN
public void testNaN() throws java.lang.Exception
-
testComplex
public void testComplex() throws java.lang.Exception
- Overrides:
testComplex
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
-
testIf
public void testIf() 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
-
testCaseNull
public void testCaseNull() throws java.lang.Exception
- Overrides:
testCaseNull
in classJepTest
- Throws:
java.lang.Exception
-
testLogarithm
public void testLogarithm() throws java.lang.Exception
- Overrides:
testLogarithm
in classJepTest
- Throws:
java.lang.Exception
-
testRecursiveMacroFunction
public void testRecursiveMacroFunction() throws java.lang.Exception
- Overrides:
testRecursiveMacroFunction
in classJepTest
- Throws:
java.lang.Exception
-
testEvaluate
public void testEvaluate() throws java.lang.Exception
Description copied from class:JepTest
Tests the evaluate() method.- Overrides:
testEvaluate
in classJepTest
- Throws:
java.lang.Exception
-
testFormat
public void testFormat() throws java.lang.Exception
- Overrides:
testFormat
in classJepTest
- 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
-
testLazyLogical
public void testLazyLogical() throws java.lang.Exception
- Overrides:
testLazyLogical
in classJepTest
- Throws:
java.lang.Exception
-
testSwitch
public void testSwitch() throws java.lang.Exception
- Overrides:
testSwitch
in classJepTest
- Throws:
java.lang.Exception
-
testStringsFun
public void testStringsFun() throws java.lang.Exception
- Overrides:
testStringsFun
in classJepTest
- Throws:
java.lang.Exception
-
testStrings
public void testStrings() throws java.lang.Exception
- Overrides:
testStrings
in classJepTest
- Throws:
java.lang.Exception
-
testFunction
public void testFunction() throws java.lang.Exception
- Overrides:
testFunction
in classJepTest
- Throws:
java.lang.Exception
-
testSpecialFunctions
public void testSpecialFunctions() throws java.lang.Exception
- Overrides:
testSpecialFunctions
in classJepTest
- Throws:
java.lang.Exception
-
testAllFun
public void testAllFun() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testComplexFunctionTable
public void testComplexFunctionTable() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-