Package com.singularsys.exttests.field
Class BigDecimalFieldTest
java.lang.Object
com.singularsys.jeptests.system.JepTest
com.singularsys.exttests.field.FieldTest
com.singularsys.exttests.field.BigDecimalFieldTest
Tests for the
BigDecimalField.-
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 voidmyAssertEquals(String msg, Object expected, Object actual) voidsetUp()Sets up the parser.voidvoidvoidvoidvoidvoidTest changing variables value after parsingvoidvoidTests theevaluate()method.voidvoidvoidTest for bug with 1&&1&&1voidvoidtestNaN()voidvoidvoidvoidvoidvoidvoidprotected 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, getNumber, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, test_adding_existing_constant_fails, test_parser_sets_parent, testAssign, testBinom, testBlankParser, testChangeVariable, testComments, testEleUnit, testEmptyEqn, testEmptyEqn2, testEvalExceptions, testEvaluateComplex, testEvaluateString, testExpectedTokenSequence, testFormat, testIf, testImplicitMul, testLazyLogical2, testLogarithm, testLogical, testMultiLine, testMultiplyBug, testNoAssign, testNull, testNumParam, testParseException, testPlusPlus, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testSwitch, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNull, valueTestString
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS
-
-
Constructor Details
-
BigDecimalFieldTest
public BigDecimalFieldTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp()Description copied from class:JepTestSets up the parser. -
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 relevant for BigDecimals") public void testChangeVariableComplex()Description copied from class:JepTestTest changing variables value after parsing- Overrides:
testChangeVariableComplexin classJepTest
-
testComplex
@Test @Disabled("Complex tests not relevant for BigDecimals") public void testComplex()- Overrides:
testComplexin classJepTest
-
testStrings
@Test @Disabled("String tests not relevant for BigDecimals") public void testStrings()- Overrides:
testStringsin classJepTest
-
testStringsFun
@Test @Disabled("String tests not relevant for BigDecimals") public void testStringsFun()- Overrides:
testStringsFunin classJepTest
-
testCaseString
@Test @Disabled("String tests not relevant for BigDecimals") public void testCaseString()- Overrides:
testCaseStringin classJepTest
-
testFunction
@Test @Disabled("Most functions not relevant for BigDecimals") public void testFunction()- Overrides:
testFunctionin classJepTest
-
testAllFun
@Test public void testAllFun() -
testBigDecimalFunctionTable
@Test public void testBigDecimalFunctionTable() -
testNaN
@Test @Disabled("NaN tests for relevant for BigDecimals") public void testNaN() -
test_not_X_Y
@Test @Disabled("Not (!) not relevant for BigDecimals") public void test_not_X_Y()- Overrides:
test_not_X_Yin classJepTest
-
testSpecialFunctions
@Test @Disabled("Most special functions not relevant for BigDecimals") public void testSpecialFunctions()- Overrides:
testSpecialFunctionsin classJepTest
-
testMacroFunction
@Test @Disabled("MacroFunction test fails for BigDecimals ") public void testMacroFunction()- Overrides:
testMacroFunctionin classJepTest
-
testRecursiveMacroFunction
- Overrides:
testRecursiveMacroFunctionin classJepTest- Throws:
Exception
-
testCaseNull
@Test @Disabled("Null values not relevant for BigDecimals ") public void testCaseNull()- Overrides:
testCaseNullin classJepTest
-
testEvaluate
@Disabled("Require an explicit test for Double not relevant for BigDecimals ") @Test public void testEvaluate()Description copied from class:JepTestTests theevaluate()method.- Overrides:
testEvaluatein classJepTest
-
testUminusPower
- Overrides:
testUminusPowerin classJepTest- Throws:
Exception
-
testLazyLogicalBug
@Disabled("Logical operations not relevant for BigDecimals") @Test public void testLazyLogicalBug()Description copied from class:JepTestTest for bug with 1&&1&&1- Overrides:
testLazyLogicalBugin classJepTest
-
testNumbers
@Disabled("Requires an explicit test for Doubles not relevant for BigDecimals ") @Test public void testNumbers()- Overrides:
testNumbersin classJepTest
-
testLazyLogical
@Disabled("Logical operations not relevant for BigDecimals") @Test public void testLazyLogical()- Overrides:
testLazyLogicalin classJepTest
-
testNumberAsBooleanLogical
@Disabled("Logical operations not relevant for BigDecimals") @Test public void testNumberAsBooleanLogical()- Overrides:
testNumberAsBooleanLogicalin classJepTest
-