Package com.singularsys.jeptests.system
Class BigDecimalTest
java.lang.Object
com.singularsys.jeptests.system.BigDecimalTest
Tests the BigDecComponents through a set of test expressions that are evaluated.
- Author:
- singularsys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAbs()voidAvg()voidcmpBug()Check for problems where MinMax used comparisons which worked by first converting to doubles.voidevalExceptionTest(String expr) voidexprEquals(String expr, Object expected) voidvoidMinMax()voidTrying to raise a big decimal to a non-integral big decimal fails as not supported by BigDecimal BigDecimal Rounding using power operatorvoidRound()voidSignum()voidTest expression against booleanvoidvoidTests inter-operability of big decimals and strings.voidvoidvoidtestCP()voidtestIf()voidvoid
-
Constructor Details
-
BigDecimalTest
public BigDecimalTest()
-
-
Method Details
-
unlimitedPrecisionTest
public void unlimitedPrecisionTest() -
cmpBug
public void cmpBug()Check for problems where MinMax used comparisons which worked by first converting to doubles. -
limitedPrecisionTest
public void limitedPrecisionTest() -
power_only_works_when_argument_is_integral
Trying to raise a big decimal to a non-integral big decimal fails as not supported by BigDecimal BigDecimal Rounding using power operator- Throws:
JepException
-
test
Test expression against boolean- Parameters:
str-value-
-
test
-
eval
-
testCP
- Throws:
Exception
-
exprEquals
- Throws:
JepException
-
evalExceptionTest
- Throws:
JepException
-
testSetAllowStrings
- Throws:
Exception
-
testBoolean
- Throws:
Exception
-
testBDString
Tests inter-operability of big decimals and strings.- Throws:
Exception
-
Abs
public void Abs() -
Round
public void Round() -
Signum
public void Signum() -
MinMax
public void MinMax() -
Avg
public void Avg() -
testIf
public void testIf() -
testCoerce
- Throws:
Exception
-