mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-27 02:25:36 +00:00
Fixed: Typo in function call to _CPDecimalSetZero and made the test case work properly (#2820)
This commit is contained in:
1 parent
378f87a634
commit
7bd8bf02f6
2 files changed
+7
-2
No files matched your search
@@ -941,7 +941,7 @@ function CPDecimalDivide(result, leftOperand, rightOperand, roundingMode)
|
||||
|
||||
if (result._exponent + exp < CPDecimalMinExponent)
|
||||
{
|
||||
CPDecimalSetZero(result);
|
||||
_CPDecimalSetZero(result);
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,7 +295,12 @@
|
||||
|
||||
try
|
||||
{
|
||||
dcmn3 = [dcmn1 decimalNumberByDividingBy:dcmn2];
|
||||
dcmn3 = [dcmn1 decimalNumberByDividingBy:dcmn2
|
||||
withBehavior:[CPDecimalNumberHandler decimalNumberHandlerWithRoundingMode:CPRoundPlain scale:0
|
||||
raiseOnExactness:YES
|
||||
raiseOnOverflow:YES
|
||||
raiseOnUnderflow:YES
|
||||
raiseOnDivideByZero:YES]];
|
||||
[self fail:"decimalNumberByDividingBy: TEX3 - should have thrown underflow error "];
|
||||
}
|
||||
catch (e)
|
||||
|
||||
Reference in new issue
Block a user