Package com.singularsys.exttests.field
Class RationalFieldTest
- java.lang.Object
-
- com.singularsys.jeptests.system.JepTest
-
- com.singularsys.exttests.field.FieldTest
-
- com.singularsys.exttests.field.RationalFieldTest
-
public class RationalFieldTest 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 RationalFieldTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidmyAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual)voidsetUp()Sets up the parser.voidtestAllFun()voidtestCaseNull()voidtestCaseString()voidtestChangeVariableComplex()Test changing variables value after parsingvoidtestComplex()voidtestEvaluate()Tests the evaluate() method.voidtestFormat()voidtestFunction()voidtestIf()voidtestLazyLogical()voidtestLazyLogicalBug()Test for bug with 1&&1&&1voidtestLogarithm()voidtestMacroFunction()voidtestNaN()voidtestNumberAsBooleanLogical()voidtestNumbers()voidtestNumParam()voidtestPrintRationalDiv()voidtestRationalFunctionTable()voidtestRecursiveMacroFunction()voidtestSpecialFunctions()voidtestStrings()voidtestStringsFun()voidtestSwitch()voidtestUminusPower()protected voidvalueTest(java.lang.String expr, java.lang.Object expected)Test result j.evaluate(j.parse(expr))-
Methods inherited from class com.singularsys.exttests.field.FieldTest
setShiftZeroElePfmc, testComplexListAccess, testFieldBinomial, testIllegalCalc, testListAccess, testListAccessShiftZero, testListExtra, testListFunctions, testMultiDimArray, testMultiDimArrayShiftZero
-
Methods inherited from class com.singularsys.jeptests.system.JepTest
assertEqNodes, buildMatrix, buildVector, calcValue, calcValue, checkVector, compareRecursive, complexValueTest, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, test_not_X_Y, testAssign, testBinom, testBlankParser, testChangeVariable, testComments, testEleUnit, testEmptyEqn, testEmptyEqn2, testEvalExceptions, testEvaluateComplex, testEvaluateString, testExpectedTokenSequence, testImplicitMul, testLazyLogical2, testLogical, testMultiLine, testMultiplyBug, testNoAssign, testNull, testParseException, testPlusPlus, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString
-
-
-
-
Method Detail
-
setUp
public void setUp()
Description copied from class:JepTestSets up the parser.
-
valueTest
protected void valueTest(java.lang.String expr, java.lang.Object expected) throws java.lang.ExceptionDescription copied from class:JepTestTest result j.evaluate(j.parse(expr))
-
myAssertEquals
protected void myAssertEquals(java.lang.String msg, java.lang.Object expected, java.lang.Object actual) throws EvaluationException- Overrides:
myAssertEqualsin classJepTest- Throws:
EvaluationException
-
testChangeVariableComplex
public void testChangeVariableComplex() throws java.lang.ExceptionDescription copied from class:JepTestTest changing variables value after parsing- Overrides:
testChangeVariableComplexin classJepTest- Throws:
java.lang.Exception
-
testStrings
public void testStrings() throws java.lang.Exception- Overrides:
testStringsin classJepTest- Throws:
java.lang.Exception
-
testStringsFun
public void testStringsFun() throws java.lang.Exception- Overrides:
testStringsFunin classJepTest- Throws:
java.lang.Exception
-
testComplex
public void testComplex() throws java.lang.Exception- Overrides:
testComplexin classJepTest- Throws:
java.lang.Exception
-
testCaseString
public void testCaseString() throws java.lang.Exception- Overrides:
testCaseStringin classJepTest- Throws:
java.lang.Exception
-
testAllFun
public void testAllFun() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRationalFunctionTable
public void testRationalFunctionTable() throws java.lang.Exception- Throws:
java.lang.Exception
-
testNaN
public void testNaN() throws java.lang.Exception
-
testSpecialFunctions
public void testSpecialFunctions() throws java.lang.Exception- Overrides:
testSpecialFunctionsin classJepTest- Throws:
java.lang.Exception
-
testFormat
public void testFormat() throws java.lang.Exception- Overrides:
testFormatin classJepTest- Throws:
java.lang.Exception
-
testSwitch
public void testSwitch() throws java.lang.Exception- Overrides:
testSwitchin classJepTest- Throws:
java.lang.Exception
-
testNumbers
public void testNumbers() throws java.lang.Exception- Overrides:
testNumbersin classJepTest- Throws:
java.lang.Exception
-
testFunction
public void testFunction() throws java.lang.Exception- Overrides:
testFunctionin classJepTest- Throws:
java.lang.Exception
-
testMacroFunction
public void testMacroFunction() throws java.lang.Exception- Overrides:
testMacroFunctionin classJepTest- Throws:
java.lang.Exception
-
testRecursiveMacroFunction
public void testRecursiveMacroFunction() throws java.lang.Exception- Overrides:
testRecursiveMacroFunctionin classJepTest- Throws:
java.lang.Exception
-
testCaseNull
public void testCaseNull() throws java.lang.Exception- Overrides:
testCaseNullin classJepTest- Throws:
java.lang.Exception
-
testEvaluate
public void testEvaluate() throws java.lang.ExceptionDescription copied from class:JepTestTests the evaluate() method.- Overrides:
testEvaluatein classJepTest- Throws:
java.lang.Exception
-
testUminusPower
public void testUminusPower() throws java.lang.Exception- Overrides:
testUminusPowerin classJepTest- 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
-
testLazyLogical
public void testLazyLogical() throws java.lang.Exception- Overrides:
testLazyLogicalin classJepTest- Throws:
java.lang.Exception
-
testNumberAsBooleanLogical
public void testNumberAsBooleanLogical() throws java.lang.Exception- Overrides:
testNumberAsBooleanLogicalin classJepTest- Throws:
java.lang.Exception
-
testNumParam
public void testNumParam() throws java.lang.Exception- Overrides:
testNumParamin classJepTest- Throws:
java.lang.Exception
-
testLogarithm
public void testLogarithm() throws java.lang.Exception- Overrides:
testLogarithmin classJepTest- Throws:
java.lang.Exception
-
testIf
public void testIf() throws java.lang.Exception
-
testPrintRationalDiv
public void testPrintRationalDiv() throws java.lang.Exception- Throws:
java.lang.Exception
-
-