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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Abs()
void
Avg()
void
cmpBug()
Check for problems where MinMax used comparisons which worked by first converting to doubles.void
evalExceptionTest
(String expr) void
exprEquals
(String expr, Object expected) void
void
MinMax()
void
Trying to raise a big decimal to a non-integral big decimal fails as not supported by BigDecimal BigDecimal Rounding using power operatorvoid
Round()
void
Signum()
void
Test expression against booleanvoid
void
Tests inter-operability of big decimals and strings.void
void
void
testCP()
void
testIf()
void
void
-
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
-