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
Tests for the
RationalField.-
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 TypeMethodDescriptionprotected ObjectCreate a number of the appropriate typeprotected voidmyAssertEquals(String msg, Object expected, Object actual) voidsetUp()Sets up the parser.voidvoidvoidvoidTest changing variables value after parsingvoidvoidTests theevaluate()method.voidvoidvoidtestIf()voidvoidTest for bug with 1&&1&&1voidvoidvoidtestNaN()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidTest result j.evaluate(j.parse(expr))Methods inherited from class com.singularsys.exttests.field.FieldTest
setShiftZeroElePfmc, testComplexListAccess, testFieldBinomial, testIllegalCalc, testListAccess, testListAccessShiftZero, testListExtra, testListFunctions, testListOperations, testMultiDimArray, testMultiDimArrayShiftZeroMethods 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_adding_existing_constant_fails, test_not_X_Y, test_parser_sets_parent, 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
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS
-
-
Constructor Details
-
RationalFieldTest
public RationalFieldTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp()Description copied from class:JepTestSets up the parser. -
getNumber
Description copied from class:JepTestCreate a number of the appropriate type -
valueTest
Description copied from class:JepTestTest result j.evaluate(j.parse(expr))- Overrides:
valueTestin classJepTest- Parameters:
expr- the expression to parse and evaluateexpected- result expected- Throws:
JepException
-
myAssertEquals
protected void myAssertEquals(String msg, Object expected, Object actual) throws EvaluationException - Overrides:
myAssertEqualsin classJepTest- Throws:
EvaluationException
-
testChangeVariableComplex
@Test @Disabled("Complex tests not implemented for rationals") public void testChangeVariableComplex()Description copied from class:JepTestTest changing variables value after parsing- Overrides:
testChangeVariableComplexin classJepTest
-
testStrings
@Test @Disabled("String tests not implemented for rationals") public void testStrings()- Overrides:
testStringsin classJepTest
-
testStringsFun
@Test @Disabled("String tests not implemented for rationals") public void testStringsFun()- Overrides:
testStringsFunin classJepTest
-
testComplex
@Test @Disabled("Complex tests not implemented for rationals") public void testComplex()- Overrides:
testComplexin classJepTest
-
testCaseString
@Test @Disabled("String tests not implemented for rationals") public void testCaseString()- Overrides:
testCaseStringin classJepTest
-
testAllFun
@Test public void testAllFun() -
testRationalFunctionTable
@Test public void testRationalFunctionTable() -
testNaN
@Test @Disabled("NaN tests not implemented for rationals") public void testNaN() -
testSpecialFunctions
@Test @Disabled("Special function tests not implemented for rationals, check") public void testSpecialFunctions()- Overrides:
testSpecialFunctionsin classJepTest
-
testFormat
@Test @Disabled("Formats tests not implemented for rationals") public void testFormat()- Overrides:
testFormatin classJepTest
-
testSwitch
@Test @Disabled("Switch tests not implemented for rationals") public void testSwitch()- Overrides:
testSwitchin classJepTest
-
testNumbers
@Test @Disabled("Number tests not implemented for rationals, check") public void testNumbers()- Overrides:
testNumbersin classJepTest
-
testFunction
@Test @Disabled("Function tests not implemented for rationals, check") public void testFunction()- Overrides:
testFunctionin classJepTest
-
testMacroFunction
@Test @Disabled("MacroFunction tests not implemented for rationals, check") public void testMacroFunction()- Overrides:
testMacroFunctionin classJepTest
-
testRecursiveMacroFunction
- Overrides:
testRecursiveMacroFunctionin classJepTest- Throws:
Exception
-
testCaseNull
@Test @Disabled("Case tests not implemented for rationals") public void testCaseNull()- Overrides:
testCaseNullin classJepTest
-
testEvaluate
@Disabled("Evaluate tests not implemented for rationals as expects doubles") @Test public void testEvaluate()Description copied from class:JepTestTests theevaluate()method.- Overrides:
testEvaluatein classJepTest
-
testUminusPower
- Overrides:
testUminusPowerin classJepTest- Throws:
Exception
-
testLazyLogicalBug
@Disabled("Logical tests not implemented for rationals, check") @Test public void testLazyLogicalBug()Description copied from class:JepTestTest for bug with 1&&1&&1- Overrides:
testLazyLogicalBugin classJepTest
-
testLazyLogical
@Test @Disabled("Logical tests not implemented for rationals, check") public void testLazyLogical()- Overrides:
testLazyLogicalin classJepTest
-
testNumberAsBooleanLogical
@Disabled("Logical tests not implemented for rationals, check") @Test public void testNumberAsBooleanLogical()- Overrides:
testNumberAsBooleanLogicalin classJepTest
-
testNumParam
@Test @Disabled("NumParam tests not implemented for rationals") public void testNumParam()- Overrides:
testNumParamin classJepTest
-
testLogarithm
@Test @Disabled("Logarithm tests not implemented for rationals") public void testLogarithm()- Overrides:
testLogarithmin classJepTest
-
testIf
-
testPrintRationalDiv
- Throws:
Exception
-