[Python-checkins] r59146 - python/trunk/Lib/test/decimaltestdata/abs.decTest python/trunk/Lib/test/decimaltestdata/add.decTest python/trunk/Lib/test/decimaltestdata/and.decTest python/trunk/Lib/test/decimaltestdata/base.decTest python/trunk/Lib/test/decimaltestdata/clamp.decTest python/trunk/Lib/test/decimaltestdata/class.decTest python/trunk/Lib/test/decimaltestdata/compare.decTest python/trunk/Lib/test/decimaltestdata/comparetotal.decTest python/trunk/Lib/test/decimaltestdata/comparetotmag.decTest python/trunk/Lib/test/decimaltestdata/copy.decTest python/trunk/Lib/test/decimaltestdata/copyabs.decTest python/trunk/Lib/test/decimaltestdata/copynegate.decTest python/trunk/Lib/test/decimaltestdata/copysign.decTest python/trunk/Lib/test/decimaltestdata/ddAbs.decTest python/trunk/Lib/test/decimaltestdata/ddAdd.decTest python/trunk/Lib/test/decimaltestdata/ddAnd.decTest python/trunk/Lib/test/decimaltestdata/ddBase.decTest python/trunk/Lib/test/decimaltestdata/ddCanonical.decTest python/trunk/Lib/test/decimaltestdata/ddClass.decTest python/trunk/Lib/test/decimaltestdata/ddCompare.decTest python/trunk/Lib/test/decimaltestdata/ddCompareSig.decTest python/trunk/Lib/test/decimaltestdata/ddCompareTotal.decTest python/trunk/Lib/test/decimaltestdata/ddCompareTotalMag.decTest python/trunk/Lib/test/decimaltestdata/ddCopy.decTest python/trunk/Lib/test/decimaltestdata/ddCopyAbs.decTest python/trunk/Lib/test/decimaltestdata/ddCopyNegate.decTest python/trunk/Lib/test/decimaltestdata/ddCopySign.decTest python/trunk/Lib/test/decimaltestdata/ddDivide.decTest python/trunk/Lib/test/decimaltestdata/ddDivideInt.decTest python/trunk/Lib/test/decimaltestdata/ddEncode.decTest python/trunk/Lib/test/decimaltestdata/ddFMA.decTest python/trunk/Lib/test/decimaltestdata/ddInvert.decTest python/trunk/Lib/test/decimaltestdata/ddLogB.decTest python/trunk/Lib/test/decimaltestdata/ddMax.decTest python/trunk/Lib/test/decimaltestdata/ddMaxMag.decTest python/trunk/Lib/test/decimaltestdata/ddMin.decTest python/trunk/Lib/test/decimaltestdata/ddMinMag.decTest python/trunk/Lib/test/decimaltestdata/ddMinus.decTest python/trunk/Lib/test/decimaltestdata/ddMultiply.decTest python/trunk/Lib/test/decimaltestdata/ddNextMinus.decTest python/trunk/Lib/test/decimaltestdata/ddNextPlus.decTest python/trunk/Lib/test/decimaltestdata/ddNextToward.decTest python/trunk/Lib/test/decimaltestdata/ddOr.decTest python/trunk/Lib/test/decimaltestdata/ddPlus.decTest python/trunk/Lib/test/decimaltestdata/ddQuantize.decTest python/trunk/Lib/test/decimaltestdata/ddReduce.decTest python/trunk/Lib/test/decimaltestdata/ddRemainder.decTest python/trunk/Lib/test/decimaltestdata/ddRemainderNear.decTest python/trunk/Lib/test/decimaltestdata/ddRotate.decTest python/trunk/Lib/test/decimaltestdata/ddSameQuantum.decTest python/trunk/Lib/test/decimaltestdata/ddScaleB.decTest python/trunk/Lib/test/decimaltestdata/ddShift.decTest python/trunk/Lib/test/decimaltestdata/ddSubtract.decTest python/trunk/Lib/test/decimaltestdata/ddToIntegral.decTest python/trunk/Lib/test/decimaltestdata/ddXor.decTest python/trunk/Lib/test/decimaltestdata/decDouble.decTest python/trunk/Lib/test/decimaltestdata/decQuad.decTest python/trunk/Lib/test/decimaltestdata/decSingle.decTest python/trunk/Lib/test/decimaltestdata/divide.decTest python/trunk/Lib/test/decimaltestdata/divideint.decTest python/trunk/Lib/test/decimaltestdata/dqAbs.decTest python/trunk/Lib/test/decimaltestdata/dqAdd.decTest python/trunk/Lib/test/decimaltestdata/dqAnd.decTest python/trunk/Lib/test/decimaltestdata/dqBase.decTest python/trunk/Lib/test/decimaltestdata/dqCanonical.decTest python/trunk/Lib/test/decimaltestdata/dqClass.decTest python/trunk/Lib/test/decimaltestdata/dqCompare.decTest python/trunk/Lib/test/decimaltestdata/dqCompareSig.decTest python/trunk/Lib/test/decimaltestdata/dqCompareTotal.decTest python/trunk/Lib/test/decimaltestdata/dqCompareTotalMag.decTest python/trunk/Lib/test/decimaltestdata/dqCopy.decTest python/trunk/Lib/test/decimaltestdata/dqCopyAbs.decTest python/trunk/Lib/test/decimaltestdata/dqCopyNegate.decTest python/trunk/Lib/test/decimaltestdata/dqCopySign.decTest python/trunk/Lib/test/decimaltestdata/dqDivide.decTest python/trunk/Lib/test/decimaltestdata/dqDivideInt.decTest python/trunk/Lib/test/decimaltestdata/dqEncode.decTest python/trunk/Lib/test/decimaltestdata/dqFMA.decTest python/trunk/Lib/test/decimaltestdata/dqInvert.decTest python/trunk/Lib/test/decimaltestdata/dqLogB.decTest python/trunk/Lib/test/decimaltestdata/dqMax.decTest python/trunk/Lib/test/decimaltestdata/dqMaxMag.decTest python/trunk/Lib/test/decimaltestdata/dqMin.decTest python/trunk/Lib/test/decimaltestdata/dqMinMag.decTest python/trunk/Lib/test/decimaltestdata/dqMinus.decTest python/trunk/Lib/test/decimaltestdata/dqMultiply.decTest python/trunk/Lib/test/decimaltestdata/dqNextMinus.decTest python/trunk/Lib/test/decimaltestdata/dqNextPlus.decTest python/trunk/Lib/test/decimaltestdata/dqNextToward.decTest python/trunk/Lib/test/decimaltestdata/dqOr.decTest python/trunk/Lib/test/decimaltestdata/dqPlus.decTest python/trunk/Lib/test/decimaltestdata/dqQuantize.decTest python/trunk/Lib/test/decimaltestdata/dqReduce.decTest python/trunk/Lib/test/decimaltestdata/dqRemainder.decTest python/trunk/Lib/test/decimaltestdata/dqRemainderNear.decTest python/trunk/Lib/test/decimaltestdata/dqRotate.decTest python/trunk/Lib/test/decimaltestdata/dqSameQuantum.decTest python/trunk/Lib/test/decimaltestdata/dqScaleB.decTest python/trunk/Lib/test/decimaltestdata/dqShift.decTest python/trunk/Lib/test/decimaltestdata/dqSubtract.decTest python/trunk/Lib/test/decimaltestdata/dqToIntegral.decTest python/trunk/Lib/test/decimaltestdata/dqXor.decTest python/trunk/Lib/test/decimaltestdata/dsBase.decTest python/trunk/Lib/test/decimaltestdata/dsEncode.decTest python/trunk/Lib/test/decimaltestdata/exp.decTest python/trunk/Lib/test/decimaltestdata/fma.decTest python/trunk/Lib/test/decimaltestdata/inexact.decTest python/trunk/Lib/test/decimaltestdata/invert.decTest python/trunk/Lib/test/decimaltestdata/ln.decTest python/trunk/Lib/test/decimaltestdata/log10.decTest python/trunk/Lib/test/decimaltestdata/logb.decTest python/trunk/Lib/test/decimaltestdata/max.decTest python/trunk/Lib/test/decimaltestdata/maxmag.decTest python/trunk/Lib/test/decimaltestdata/min.decTest python/trunk/Lib/test/decimaltestdata/minmag.decTest python/trunk/Lib/test/decimaltestdata/minus.decTest python/trunk/Lib/test/decimaltestdata/multiply.decTest python/trunk/Lib/test/decimaltestdata/nextminus.decTest python/trunk/Lib/test/decimaltestdata/nextplus.decTest python/trunk/Lib/test/decimaltestdata/nexttoward.decTest python/trunk/Lib/test/decimaltestdata/or.decTest python/trunk/Lib/test/decimaltestdata/plus.decTest python/trunk/Lib/test/decimaltestdata/power.decTest python/trunk/Lib/test/decimaltestdata/powersqrt.decTest python/trunk/Lib/test/decimaltestdata/quantize.decTest python/trunk/Lib/test/decimaltestdata/randomBound32.decTest python/trunk/Lib/test/decimaltestdata/randoms.decTest python/trunk/Lib/test/decimaltestdata/reduce.decTest python/trunk/Lib/test/decimaltestdata/remainder.decTest python/trunk/Lib/test/decimaltestdata/remainderNear.decTest python/trunk/Lib/test/decimaltestdata/rescale.decTest python/trunk/Lib/test/decimaltestdata/rotate.decTest python/trunk/Lib/test/decimaltestdata/rounding.decTest python/trunk/Lib/test/decimaltestdata/samequantum.decTest python/trunk/Lib/test/decimaltestdata/scaleb.decTest python/trunk/Lib/test/decimaltestdata/shift.decTest python/trunk/Lib/test/decimaltestdata/squareroot.decTest python/trunk/Lib/test/decimaltestdata/subtract.decTest python/trunk/Lib/test/decimaltestdata/testall.decTest python/trunk/Lib/test/decimaltestdata/tointegral.decTest python/trunk/Lib/test/decimaltestdata/tointegralx.decTest python/trunk/Lib/test/decimaltestdata/xor.decTest

facundo.batista python-checkins at python.org
Fri Nov 23 19:14:54 CET 2007


Author: facundo.batista
Date: Fri Nov 23 19:14:50 2007
New Revision: 59146

Modified:
   python/trunk/Lib/test/decimaltestdata/abs.decTest
   python/trunk/Lib/test/decimaltestdata/add.decTest
   python/trunk/Lib/test/decimaltestdata/and.decTest
   python/trunk/Lib/test/decimaltestdata/base.decTest
   python/trunk/Lib/test/decimaltestdata/clamp.decTest
   python/trunk/Lib/test/decimaltestdata/class.decTest
   python/trunk/Lib/test/decimaltestdata/compare.decTest
   python/trunk/Lib/test/decimaltestdata/comparetotal.decTest
   python/trunk/Lib/test/decimaltestdata/comparetotmag.decTest
   python/trunk/Lib/test/decimaltestdata/copy.decTest
   python/trunk/Lib/test/decimaltestdata/copyabs.decTest
   python/trunk/Lib/test/decimaltestdata/copynegate.decTest
   python/trunk/Lib/test/decimaltestdata/copysign.decTest
   python/trunk/Lib/test/decimaltestdata/ddAbs.decTest
   python/trunk/Lib/test/decimaltestdata/ddAdd.decTest
   python/trunk/Lib/test/decimaltestdata/ddAnd.decTest
   python/trunk/Lib/test/decimaltestdata/ddBase.decTest
   python/trunk/Lib/test/decimaltestdata/ddCanonical.decTest
   python/trunk/Lib/test/decimaltestdata/ddClass.decTest
   python/trunk/Lib/test/decimaltestdata/ddCompare.decTest
   python/trunk/Lib/test/decimaltestdata/ddCompareSig.decTest
   python/trunk/Lib/test/decimaltestdata/ddCompareTotal.decTest
   python/trunk/Lib/test/decimaltestdata/ddCompareTotalMag.decTest
   python/trunk/Lib/test/decimaltestdata/ddCopy.decTest
   python/trunk/Lib/test/decimaltestdata/ddCopyAbs.decTest
   python/trunk/Lib/test/decimaltestdata/ddCopyNegate.decTest
   python/trunk/Lib/test/decimaltestdata/ddCopySign.decTest
   python/trunk/Lib/test/decimaltestdata/ddDivide.decTest
   python/trunk/Lib/test/decimaltestdata/ddDivideInt.decTest
   python/trunk/Lib/test/decimaltestdata/ddEncode.decTest
   python/trunk/Lib/test/decimaltestdata/ddFMA.decTest
   python/trunk/Lib/test/decimaltestdata/ddInvert.decTest
   python/trunk/Lib/test/decimaltestdata/ddLogB.decTest
   python/trunk/Lib/test/decimaltestdata/ddMax.decTest
   python/trunk/Lib/test/decimaltestdata/ddMaxMag.decTest
   python/trunk/Lib/test/decimaltestdata/ddMin.decTest
   python/trunk/Lib/test/decimaltestdata/ddMinMag.decTest
   python/trunk/Lib/test/decimaltestdata/ddMinus.decTest
   python/trunk/Lib/test/decimaltestdata/ddMultiply.decTest
   python/trunk/Lib/test/decimaltestdata/ddNextMinus.decTest
   python/trunk/Lib/test/decimaltestdata/ddNextPlus.decTest
   python/trunk/Lib/test/decimaltestdata/ddNextToward.decTest
   python/trunk/Lib/test/decimaltestdata/ddOr.decTest
   python/trunk/Lib/test/decimaltestdata/ddPlus.decTest
   python/trunk/Lib/test/decimaltestdata/ddQuantize.decTest
   python/trunk/Lib/test/decimaltestdata/ddReduce.decTest
   python/trunk/Lib/test/decimaltestdata/ddRemainder.decTest
   python/trunk/Lib/test/decimaltestdata/ddRemainderNear.decTest
   python/trunk/Lib/test/decimaltestdata/ddRotate.decTest
   python/trunk/Lib/test/decimaltestdata/ddSameQuantum.decTest
   python/trunk/Lib/test/decimaltestdata/ddScaleB.decTest
   python/trunk/Lib/test/decimaltestdata/ddShift.decTest
   python/trunk/Lib/test/decimaltestdata/ddSubtract.decTest
   python/trunk/Lib/test/decimaltestdata/ddToIntegral.decTest
   python/trunk/Lib/test/decimaltestdata/ddXor.decTest
   python/trunk/Lib/test/decimaltestdata/decDouble.decTest
   python/trunk/Lib/test/decimaltestdata/decQuad.decTest
   python/trunk/Lib/test/decimaltestdata/decSingle.decTest
   python/trunk/Lib/test/decimaltestdata/divide.decTest
   python/trunk/Lib/test/decimaltestdata/divideint.decTest
   python/trunk/Lib/test/decimaltestdata/dqAbs.decTest
   python/trunk/Lib/test/decimaltestdata/dqAdd.decTest
   python/trunk/Lib/test/decimaltestdata/dqAnd.decTest
   python/trunk/Lib/test/decimaltestdata/dqBase.decTest
   python/trunk/Lib/test/decimaltestdata/dqCanonical.decTest
   python/trunk/Lib/test/decimaltestdata/dqClass.decTest
   python/trunk/Lib/test/decimaltestdata/dqCompare.decTest
   python/trunk/Lib/test/decimaltestdata/dqCompareSig.decTest
   python/trunk/Lib/test/decimaltestdata/dqCompareTotal.decTest
   python/trunk/Lib/test/decimaltestdata/dqCompareTotalMag.decTest
   python/trunk/Lib/test/decimaltestdata/dqCopy.decTest
   python/trunk/Lib/test/decimaltestdata/dqCopyAbs.decTest
   python/trunk/Lib/test/decimaltestdata/dqCopyNegate.decTest
   python/trunk/Lib/test/decimaltestdata/dqCopySign.decTest
   python/trunk/Lib/test/decimaltestdata/dqDivide.decTest
   python/trunk/Lib/test/decimaltestdata/dqDivideInt.decTest
   python/trunk/Lib/test/decimaltestdata/dqEncode.decTest
   python/trunk/Lib/test/decimaltestdata/dqFMA.decTest
   python/trunk/Lib/test/decimaltestdata/dqInvert.decTest
   python/trunk/Lib/test/decimaltestdata/dqLogB.decTest
   python/trunk/Lib/test/decimaltestdata/dqMax.decTest
   python/trunk/Lib/test/decimaltestdata/dqMaxMag.decTest
   python/trunk/Lib/test/decimaltestdata/dqMin.decTest
   python/trunk/Lib/test/decimaltestdata/dqMinMag.decTest
   python/trunk/Lib/test/decimaltestdata/dqMinus.decTest
   python/trunk/Lib/test/decimaltestdata/dqMultiply.decTest
   python/trunk/Lib/test/decimaltestdata/dqNextMinus.decTest
   python/trunk/Lib/test/decimaltestdata/dqNextPlus.decTest
   python/trunk/Lib/test/decimaltestdata/dqNextToward.decTest
   python/trunk/Lib/test/decimaltestdata/dqOr.decTest
   python/trunk/Lib/test/decimaltestdata/dqPlus.decTest
   python/trunk/Lib/test/decimaltestdata/dqQuantize.decTest
   python/trunk/Lib/test/decimaltestdata/dqReduce.decTest
   python/trunk/Lib/test/decimaltestdata/dqRemainder.decTest
   python/trunk/Lib/test/decimaltestdata/dqRemainderNear.decTest
   python/trunk/Lib/test/decimaltestdata/dqRotate.decTest
   python/trunk/Lib/test/decimaltestdata/dqSameQuantum.decTest
   python/trunk/Lib/test/decimaltestdata/dqScaleB.decTest
   python/trunk/Lib/test/decimaltestdata/dqShift.decTest
   python/trunk/Lib/test/decimaltestdata/dqSubtract.decTest
   python/trunk/Lib/test/decimaltestdata/dqToIntegral.decTest
   python/trunk/Lib/test/decimaltestdata/dqXor.decTest
   python/trunk/Lib/test/decimaltestdata/dsBase.decTest
   python/trunk/Lib/test/decimaltestdata/dsEncode.decTest
   python/trunk/Lib/test/decimaltestdata/exp.decTest
   python/trunk/Lib/test/decimaltestdata/fma.decTest
   python/trunk/Lib/test/decimaltestdata/inexact.decTest
   python/trunk/Lib/test/decimaltestdata/invert.decTest
   python/trunk/Lib/test/decimaltestdata/ln.decTest
   python/trunk/Lib/test/decimaltestdata/log10.decTest
   python/trunk/Lib/test/decimaltestdata/logb.decTest
   python/trunk/Lib/test/decimaltestdata/max.decTest
   python/trunk/Lib/test/decimaltestdata/maxmag.decTest
   python/trunk/Lib/test/decimaltestdata/min.decTest
   python/trunk/Lib/test/decimaltestdata/minmag.decTest
   python/trunk/Lib/test/decimaltestdata/minus.decTest
   python/trunk/Lib/test/decimaltestdata/multiply.decTest
   python/trunk/Lib/test/decimaltestdata/nextminus.decTest
   python/trunk/Lib/test/decimaltestdata/nextplus.decTest
   python/trunk/Lib/test/decimaltestdata/nexttoward.decTest
   python/trunk/Lib/test/decimaltestdata/or.decTest
   python/trunk/Lib/test/decimaltestdata/plus.decTest
   python/trunk/Lib/test/decimaltestdata/power.decTest
   python/trunk/Lib/test/decimaltestdata/powersqrt.decTest
   python/trunk/Lib/test/decimaltestdata/quantize.decTest
   python/trunk/Lib/test/decimaltestdata/randomBound32.decTest
   python/trunk/Lib/test/decimaltestdata/randoms.decTest
   python/trunk/Lib/test/decimaltestdata/reduce.decTest
   python/trunk/Lib/test/decimaltestdata/remainder.decTest
   python/trunk/Lib/test/decimaltestdata/remainderNear.decTest
   python/trunk/Lib/test/decimaltestdata/rescale.decTest
   python/trunk/Lib/test/decimaltestdata/rotate.decTest
   python/trunk/Lib/test/decimaltestdata/rounding.decTest
   python/trunk/Lib/test/decimaltestdata/samequantum.decTest
   python/trunk/Lib/test/decimaltestdata/scaleb.decTest
   python/trunk/Lib/test/decimaltestdata/shift.decTest
   python/trunk/Lib/test/decimaltestdata/squareroot.decTest
   python/trunk/Lib/test/decimaltestdata/subtract.decTest
   python/trunk/Lib/test/decimaltestdata/testall.decTest
   python/trunk/Lib/test/decimaltestdata/tointegral.decTest
   python/trunk/Lib/test/decimaltestdata/tointegralx.decTest
   python/trunk/Lib/test/decimaltestdata/xor.decTest
Log:

Test cases from Cowlishaw, v2.57. All are pased cleanly.


Modified: python/trunk/Lib/test/decimaltestdata/abs.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/abs.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/abs.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests primarily tests the existence of the operator.
 -- Additon, subtraction, rounding, and more overflows are tested

Modified: python/trunk/Lib/test/decimaltestdata/add.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/add.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/add.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   9
 rounding:    half_up
@@ -1122,6 +1122,15 @@
 addx1117 add -1e-4 +1e-383   -> -0.00009999999999999999  Rounded Inexact
 addx1118 add -1e-5 +1e-383   -> -0.000009999999999999999  Rounded Inexact
 addx1119 add -1e-6 +1e-383   -> -9.999999999999999E-7  Rounded Inexact
+addx1120 add +1e-383 -1e+2   -> -99.99999999999999 Rounded Inexact
+addx1121 add +1e-383 -1e+1   -> -9.999999999999999  Rounded Inexact
+addx1123 add +1e-383    -1   -> -0.9999999999999999  Rounded Inexact
+addx1124 add +1e-383 -1e-1   -> -0.09999999999999999  Rounded Inexact
+addx1125 add +1e-383 -1e-2   -> -0.009999999999999999  Rounded Inexact
+addx1126 add +1e-383 -1e-3   -> -0.0009999999999999999  Rounded Inexact
+addx1127 add +1e-383 -1e-4   -> -0.00009999999999999999  Rounded Inexact
+addx1128 add +1e-383 -1e-5   -> -0.000009999999999999999  Rounded Inexact
+addx1129 add +1e-383 -1e-6   -> -9.999999999999999E-7  Rounded Inexact
 
 rounding:     down
 precision:    7
@@ -1658,17 +1667,19 @@
 addx6057 add '1E+2' '1E+4' -> '1.01E+4'
 
 -- from above
-addx6061 add 1 '0.1' -> '1.1'
-addx6062 add 1 '0.01' -> '1.01'
-addx6063 add 1 '0.001' -> '1.001'
-addx6064 add 1 '0.0001' -> '1.0001'
-addx6065 add 1 '0.00001' -> '1.00001'
-addx6066 add 1 '0.000001' -> '1.000001'
-addx6067 add 1 '0.0000001' -> '1.0000001'
-addx6068 add 1 '0.00000001' -> '1.00000001'
+addx6060 add 1 '0.1' -> '1.1'
+addx6061 add 1 '0.01' -> '1.01'
+addx6062 add 1 '0.001' -> '1.001'
+addx6063 add 1 '0.0001' -> '1.0001'
+addx6064 add 1 '0.00001' -> '1.00001'
+addx6065 add 1 '0.000001' -> '1.000001'
+addx6066 add 1 '0.0000001' -> '1.0000001'
+addx6067 add 1 '0.00000001' -> '1.00000001'
 
 -- cancellation to integer
-addx6069 add 99999999999999123456789 -99999999999999E+9 -> 123456789
+addx6068 add 99999999999999123456789 -99999999999999E+9 -> 123456789
+-- similar from FMA fun
+addx6069 add "-1234567890123455.234567890123454" "1234567890123456" -> 0.765432109876546
 
 -- some funny zeros [in case of bad signum]
 addx6070 add 1  0    -> 1

Modified: python/trunk/Lib/test/decimaltestdata/and.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/and.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/and.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/base.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/base.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/base.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 extended:    1
 
 -- This file tests base conversions from string to a decimal number

Modified: python/trunk/Lib/test/decimaltestdata/clamp.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/clamp.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/clamp.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests uses the same limits as the 8-byte concrete
 -- representation, but applies clamping without using format-specific

Modified: python/trunk/Lib/test/decimaltestdata/class.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/class.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/class.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- [New 2006.11.27]
 

Modified: python/trunk/Lib/test/decimaltestdata/compare.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/compare.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/compare.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/comparetotal.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/comparetotal.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/comparetotal.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/comparetotmag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/comparetotmag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/comparetotmag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that it cannot be assumed that add/subtract tests cover paths
 -- for this operation adequately, here, because the code might be

Modified: python/trunk/Lib/test/decimaltestdata/copy.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/copy.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/copy.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/copyabs.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/copyabs.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/copyabs.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/copynegate.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/copynegate.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/copynegate.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/copysign.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/copysign.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/copysign.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/ddAbs.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddAbs.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddAbs.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddAdd.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddAdd.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddAdd.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests are for decDoubles only; all arguments are
 -- representable in a decDouble
@@ -1029,6 +1029,16 @@
 ddadd71707 add 130E-2   -1E0    -> 0.30
 ddadd71708 add 1E2      -1E4    -> -9.9E+3
 
+-- query from Vincent Kulandaisamy
+rounding: ceiling
+ddadd71801  add  7.8822773805862E+277    -5.1757503820663E-21 -> 7.882277380586200E+277 Inexact Rounded
+ddadd71802  add  7.882277380586200E+277  12.341               -> 7.882277380586201E+277 Inexact Rounded
+ddadd71803  add  7.882277380586201E+277  2.7270545046613E-31  -> 7.882277380586202E+277 Inexact Rounded
+
+ddadd71811  add                   12.341 -5.1757503820663E-21 -> 12.34100000000000      Inexact Rounded
+ddadd71812  add        12.34100000000000 2.7270545046613E-31  -> 12.34100000000001      Inexact Rounded
+ddadd71813  add        12.34100000000001 7.8822773805862E+277 -> 7.882277380586201E+277 Inexact Rounded
+
 -- Gappy coefficients; check residue handling even with full coefficient gap
 rounding: half_even
 

Modified: python/trunk/Lib/test/decimaltestdata/ddAnd.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddAnd.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddAnd.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddBase.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddBase.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddBase.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This file tests base conversions from string to a decimal number
 -- and back to a string (in Scientific form)

Modified: python/trunk/Lib/test/decimaltestdata/ddCanonical.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCanonical.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCanonical.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This file tests that copy operations leave uncanonical operands
 -- unchanged, and vice versa

Modified: python/trunk/Lib/test/decimaltestdata/ddClass.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddClass.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddClass.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- [New 2006.11.27]
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddCompare.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCompare.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCompare.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/ddCompareSig.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCompareSig.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCompareSig.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/ddCompareTotal.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCompareTotal.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCompareTotal.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/ddCompareTotalMag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCompareTotalMag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCompareTotalMag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/ddCopy.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCopy.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCopy.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddCopyAbs.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCopyAbs.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCopyAbs.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddCopyNegate.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCopyNegate.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCopyNegate.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddCopySign.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddCopySign.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddCopySign.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddDivide.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddDivide.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddDivide.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddDivideInt.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddDivideInt.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddDivideInt.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddEncode.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddEncode.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddEncode.decTest	Fri Nov 23 19:14:50 2007
@@ -18,7 +18,7 @@
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
 -- [Previously called decimal64.decTest]
-version: 2.56
+version: 2.57
 
 -- This set of tests is for the eight-byte concrete representation.
 -- Its characteristics are:
@@ -485,3 +485,6 @@
 decd829 apply  #2238000115afb55b ->  4294967295
 decd830 apply  #2238000115afb57a ->  4294967296
 decd831 apply  #2238000115afb57b ->  4294967297
+
+-- for narrowing
+decd840 apply  #2870000000000000 ->  2.000000000000000E-99

Modified: python/trunk/Lib/test/decimaltestdata/ddFMA.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddFMA.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddFMA.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384
@@ -1663,6 +1663,34 @@
 ddfma375088 fma  1  12345678 1E-34                   -> 12345678.00000001 Inexact Rounded
 ddfma375089 fma  1  12345678 1E-35                   -> 12345678.00000001 Inexact Rounded
 
+-- desctructive subtraction (from remainder tests)
+
+-- +++ some of these will be off-by-one remainder vs remainderNear
+
+ddfma4000  fma  -1234567890123454   1.000000000000001    1234567890123456  ->  0.765432109876546
+ddfma4001  fma  -1234567890123443    1.00000000000001    1234567890123456  ->  0.65432109876557
+ddfma4002  fma  -1234567890123332     1.0000000000001    1234567890123456  ->  0.5432109876668
+ddfma4003  fma   -308641972530863   4.000000000000001    1234567890123455  ->  2.691358027469137
+ddfma4004  fma   -308641972530863   4.000000000000001    1234567890123456  ->  3.691358027469137
+ddfma4005  fma   -246913578024696     4.9999999999999    1234567890123456  ->  0.6913578024696
+ddfma4006  fma   -246913578024691    4.99999999999999    1234567890123456  ->  3.46913578024691
+ddfma4007  fma   -246913578024691   4.999999999999999    1234567890123456  ->  1.246913578024691
+ddfma4008  fma   -246913578024691   5.000000000000001    1234567890123456  ->  0.753086421975309
+ddfma4009  fma   -246913578024690    5.00000000000001    1234567890123456  ->  3.53086421975310
+ddfma4010  fma   -246913578024686     5.0000000000001    1234567890123456  ->  1.3086421975314
+ddfma4011  fma  -1234567890123455   1.000000000000001    1234567890123456  ->  -0.234567890123455
+ddfma4012  fma  -1234567890123444    1.00000000000001    1234567890123456  ->  -0.34567890123444
+ddfma4013  fma  -1234567890123333     1.0000000000001    1234567890123456  ->  -0.4567890123333
+ddfma4014  fma   -308641972530864   4.000000000000001    1234567890123455  ->  -1.308641972530864
+ddfma4015  fma   -308641972530864   4.000000000000001    1234567890123456  ->  -0.308641972530864
+ddfma4016  fma   -246913578024696     4.9999999999999    1234567890123456  ->  0.6913578024696
+ddfma4017  fma   -246913578024692    4.99999999999999    1234567890123456  ->  -1.53086421975308
+ddfma4018  fma   -246913578024691   4.999999999999999    1234567890123456  ->  1.246913578024691
+ddfma4019  fma   -246913578024691   5.000000000000001    1234567890123456  ->  0.753086421975309
+ddfma4020  fma   -246913578024691    5.00000000000001    1234567890123456  ->  -1.46913578024691
+ddfma4021  fma   -246913578024686     5.0000000000001    1234567890123456  ->  1.3086421975314
+
+
 -- Null tests
 ddfma39990 fma  1  10  # -> NaN Invalid_operation
 ddfma39991 fma  1   # 10 -> NaN Invalid_operation

Modified: python/trunk/Lib/test/decimaltestdata/ddInvert.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddInvert.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddInvert.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddLogB.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddLogB.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddLogB.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddMax.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddMax.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddMax.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/ddMaxMag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddMaxMag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddMaxMag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/ddMin.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddMin.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddMin.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/ddMinMag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddMinMag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddMinMag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/ddMinus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddMinus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddMinus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddMultiply.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddMultiply.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddMultiply.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests are for decDoubles only; all arguments are
 -- representable in a decDouble
@@ -454,9 +454,92 @@
 -- hugest
 ddmul909 multiply  9999999999999999 9999999999999999 -> 9.999999999999998E+31 Inexact Rounded
 
+-- power-of-ten edge cases
+ddmul1001 multiply  1      10               -> 10
+ddmul1002 multiply  1      100              -> 100
+ddmul1003 multiply  1      1000             -> 1000
+ddmul1004 multiply  1      10000            -> 10000
+ddmul1005 multiply  1      100000           -> 100000
+ddmul1006 multiply  1      1000000          -> 1000000
+ddmul1007 multiply  1      10000000         -> 10000000
+ddmul1008 multiply  1      100000000        -> 100000000
+ddmul1009 multiply  1      1000000000       -> 1000000000
+ddmul1010 multiply  1      10000000000      -> 10000000000
+ddmul1011 multiply  1      100000000000     -> 100000000000
+ddmul1012 multiply  1      1000000000000    -> 1000000000000
+ddmul1013 multiply  1      10000000000000   -> 10000000000000
+ddmul1014 multiply  1      100000000000000  -> 100000000000000
+ddmul1015 multiply  1      1000000000000000 -> 1000000000000000
+ddmul1021 multiply  10     1                -> 10
+ddmul1022 multiply  10     10               -> 100
+ddmul1023 multiply  10     100              -> 1000
+ddmul1024 multiply  10     1000             -> 10000
+ddmul1025 multiply  10     10000            -> 100000
+ddmul1026 multiply  10     100000           -> 1000000
+ddmul1027 multiply  10     1000000          -> 10000000
+ddmul1028 multiply  10     10000000         -> 100000000
+ddmul1029 multiply  10     100000000        -> 1000000000
+ddmul1030 multiply  10     1000000000       -> 10000000000
+ddmul1031 multiply  10     10000000000      -> 100000000000
+ddmul1032 multiply  10     100000000000     -> 1000000000000
+ddmul1033 multiply  10     1000000000000    -> 10000000000000
+ddmul1034 multiply  10     10000000000000   -> 100000000000000
+ddmul1035 multiply  10     100000000000000  -> 1000000000000000
+ddmul1041 multiply  100    0.1              -> 10.0
+ddmul1042 multiply  100    1                -> 100
+ddmul1043 multiply  100    10               -> 1000
+ddmul1044 multiply  100    100              -> 10000
+ddmul1045 multiply  100    1000             -> 100000
+ddmul1046 multiply  100    10000            -> 1000000
+ddmul1047 multiply  100    100000           -> 10000000
+ddmul1048 multiply  100    1000000          -> 100000000
+ddmul1049 multiply  100    10000000         -> 1000000000
+ddmul1050 multiply  100    100000000        -> 10000000000
+ddmul1051 multiply  100    1000000000       -> 100000000000
+ddmul1052 multiply  100    10000000000      -> 1000000000000
+ddmul1053 multiply  100    100000000000     -> 10000000000000
+ddmul1054 multiply  100    1000000000000    -> 100000000000000
+ddmul1055 multiply  100    10000000000000   -> 1000000000000000
+ddmul1061 multiply  1000   0.01             -> 10.00
+ddmul1062 multiply  1000   0.1              -> 100.0
+ddmul1063 multiply  1000   1                -> 1000
+ddmul1064 multiply  1000   10               -> 10000
+ddmul1065 multiply  1000   100              -> 100000
+ddmul1066 multiply  1000   1000             -> 1000000
+ddmul1067 multiply  1000   10000            -> 10000000
+ddmul1068 multiply  1000   100000           -> 100000000
+ddmul1069 multiply  1000   1000000          -> 1000000000
+ddmul1070 multiply  1000   10000000         -> 10000000000
+ddmul1071 multiply  1000   100000000        -> 100000000000
+ddmul1072 multiply  1000   1000000000       -> 1000000000000
+ddmul1073 multiply  1000   10000000000      -> 10000000000000
+ddmul1074 multiply  1000   100000000000     -> 100000000000000
+ddmul1075 multiply  1000   1000000000000    -> 1000000000000000
+ddmul1081 multiply  10000  0.001            -> 10.000
+ddmul1082 multiply  10000  0.01             -> 100.00
+ddmul1083 multiply  10000  0.1              -> 1000.0
+ddmul1084 multiply  10000  1                -> 10000
+ddmul1085 multiply  10000  10               -> 100000
+ddmul1086 multiply  10000  100              -> 1000000
+ddmul1087 multiply  10000  1000             -> 10000000
+ddmul1088 multiply  10000  10000            -> 100000000
+ddmul1089 multiply  10000  100000           -> 1000000000
+ddmul1090 multiply  10000  1000000          -> 10000000000
+ddmul1091 multiply  10000  10000000         -> 100000000000
+ddmul1092 multiply  10000  100000000        -> 1000000000000
+ddmul1093 multiply  10000  1000000000       -> 10000000000000
+ddmul1094 multiply  10000  10000000000      -> 100000000000000
+ddmul1095 multiply  10000  100000000000     -> 1000000000000000
+
+ddmul1097 multiply  10000   99999999999     ->  999999999990000
+ddmul1098 multiply  10000   99999999999     ->  999999999990000
+
+
+
+
 -- Null tests
-ddmul990 multiply 10  # -> NaN Invalid_operation
-ddmul991 multiply  # 10 -> NaN Invalid_operation
+ddmul9990 multiply 10  # -> NaN Invalid_operation
+ddmul9991 multiply  # 10 -> NaN Invalid_operation
 
 
 

Modified: python/trunk/Lib/test/decimaltestdata/ddNextMinus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddNextMinus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddNextMinus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddNextPlus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddNextPlus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddNextPlus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddNextToward.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddNextToward.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddNextToward.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddOr.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddOr.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddOr.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddPlus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddPlus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddPlus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddQuantize.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddQuantize.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddQuantize.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Most of the tests here assume a "regular pattern", where the
 -- sign and coefficient are +1.

Modified: python/trunk/Lib/test/decimaltestdata/ddReduce.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddReduce.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddReduce.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddRemainder.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddRemainder.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddRemainder.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384
@@ -581,6 +581,19 @@
 ddrem1057 remainder -1e-277  1e+311 -> -1E-277
 ddrem1058 remainder -1e-277 -1e+311 -> -1E-277
 
+-- destructive subtract
+ddrem1101 remainder  1234567890123456  1.000000000000001  ->  0.765432109876546
+ddrem1102 remainder  1234567890123456   1.00000000000001  ->   0.65432109876557
+ddrem1103 remainder  1234567890123456    1.0000000000001  ->    0.5432109876668
+ddrem1104 remainder  1234567890123455  4.000000000000001  ->  2.691358027469137
+ddrem1105 remainder  1234567890123456  4.000000000000001  ->  3.691358027469137
+ddrem1106 remainder  1234567890123456    4.9999999999999  ->    0.6913578024696
+ddrem1107 remainder  1234567890123456   4.99999999999999  ->   3.46913578024691
+ddrem1108 remainder  1234567890123456  4.999999999999999  ->  1.246913578024691
+ddrem1109 remainder  1234567890123456  5.000000000000001  ->  0.753086421975309
+ddrem1110 remainder  1234567890123456   5.00000000000001  ->   3.53086421975310
+ddrem1111 remainder  1234567890123456    5.0000000000001  ->    1.3086421975314
+
 -- Null tests
 ddrem1000 remainder 10  # -> NaN Invalid_operation
 ddrem1001 remainder  # 10 -> NaN Invalid_operation

Modified: python/trunk/Lib/test/decimaltestdata/ddRemainderNear.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddRemainderNear.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddRemainderNear.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384
@@ -599,6 +599,7 @@
 
 ddrmn980 remaindernear 123e1 1000E299 -> 1.23E+3  -- 123E+1 internally
 
+
 -- overflow and underflow tests [from divide]
 ddrmn1051 remaindernear  1e+277  1e-311 ->  NaN Division_impossible
 ddrmn1052 remaindernear  1e+277 -1e-311 ->  NaN Division_impossible
@@ -609,6 +610,19 @@
 ddrmn1057 remaindernear -1e-277  1e+311 -> -1E-277
 ddrmn1058 remaindernear -1e-277 -1e+311 -> -1E-277
 
+-- destructive subtract
+ddrmn1100 remainderNear  1234567890123456  1.000000000000001  ->  -0.234567890123455
+ddrmn1101 remainderNear  1234567890123456   1.00000000000001  ->   -0.34567890123444
+ddrmn1102 remainderNear  1234567890123456    1.0000000000001  ->    -0.4567890123333
+ddrmn1103 remainderNear  1234567890123455  4.000000000000001  ->  -1.308641972530864
+ddrmn1104 remainderNear  1234567890123456  4.000000000000001  ->  -0.308641972530864
+ddrmn1115 remainderNear  1234567890123456    4.9999999999999  ->     0.6913578024696
+ddrmn1116 remainderNear  1234567890123456   4.99999999999999  ->   -1.53086421975308
+ddrmn1117 remainderNear  1234567890123456  4.999999999999999  ->   1.246913578024691
+ddrmn1118 remainderNear  1234567890123456  5.000000000000001  ->   0.753086421975309
+ddrmn1119 remainderNear  1234567890123456   5.00000000000001  ->   -1.46913578024691
+ddrmn1110 remainderNear  1234567890123456    5.0000000000001  ->     1.3086421975314
+
 -- Null tests
 ddrmn1000 remaindernear 10  # -> NaN Invalid_operation
 ddrmn1001 remaindernear  # 10 -> NaN Invalid_operation

Modified: python/trunk/Lib/test/decimaltestdata/ddRotate.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddRotate.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddRotate.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddSameQuantum.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddSameQuantum.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddSameQuantum.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decDoubles.
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/ddScaleB.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddScaleB.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddScaleB.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddShift.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddShift.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddShift.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/ddSubtract.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddSubtract.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddSubtract.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests are for decDoubles only; all arguments are
 -- representable in a decDouble

Modified: python/trunk/Lib/test/decimaltestdata/ddToIntegral.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddToIntegral.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddToIntegral.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests tests the extended specification 'round-to-integral
 -- value-exact' operations (from IEEE 854, later modified in 754r).

Modified: python/trunk/Lib/test/decimaltestdata/ddXor.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ddXor.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ddXor.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 precision:   16
 maxExponent: 384

Modified: python/trunk/Lib/test/decimaltestdata/decDouble.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/decDouble.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/decDouble.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- decDouble tests
 dectest: ddAbs

Modified: python/trunk/Lib/test/decimaltestdata/decQuad.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/decQuad.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/decQuad.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- decQuad tests
 dectest: dqAbs

Modified: python/trunk/Lib/test/decimaltestdata/decSingle.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/decSingle.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/decSingle.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- decSingle tests
 dectest: dsBase

Modified: python/trunk/Lib/test/decimaltestdata/divide.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/divide.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/divide.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/divideint.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/divideint.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/divideint.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/dqAbs.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqAbs.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqAbs.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqAdd.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqAdd.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqAdd.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests are for decQuads only; all arguments are
 -- representable in a decQuad

Modified: python/trunk/Lib/test/decimaltestdata/dqAnd.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqAnd.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqAnd.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqBase.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqBase.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqBase.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This file tests base conversions from string to a decimal number
 -- and back to a string (in Scientific form)

Modified: python/trunk/Lib/test/decimaltestdata/dqCanonical.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCanonical.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCanonical.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This file tests that copy operations leave uncanonical operands
 -- unchanged, and vice versa

Modified: python/trunk/Lib/test/decimaltestdata/dqClass.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqClass.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqClass.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- [New 2006.11.27]
 

Modified: python/trunk/Lib/test/decimaltestdata/dqCompare.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCompare.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCompare.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/dqCompareSig.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCompareSig.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCompareSig.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/dqCompareTotal.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCompareTotal.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCompareTotal.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/dqCompareTotalMag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCompareTotalMag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCompareTotalMag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Note that we cannot assume add/subtract tests cover paths adequately,
 -- here, because the code might be quite different (comparison cannot

Modified: python/trunk/Lib/test/decimaltestdata/dqCopy.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCopy.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCopy.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqCopyAbs.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCopyAbs.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCopyAbs.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqCopyNegate.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCopyNegate.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCopyNegate.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqCopySign.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqCopySign.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqCopySign.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqDivide.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqDivide.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqDivide.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqDivideInt.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqDivideInt.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqDivideInt.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqEncode.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqEncode.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqEncode.decTest	Fri Nov 23 19:14:50 2007
@@ -18,7 +18,7 @@
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
 -- [Previously called decimal128.decTest]
-version: 2.56
+version: 2.57
 
 -- This set of tests is for the sixteen-byte concrete representation.
 -- Its characteristics are:
@@ -468,3 +468,10 @@
 decq829 apply  #22080000000000000000000115afb55b ->  4294967295
 decq830 apply  #22080000000000000000000115afb57a ->  4294967296
 decq831 apply  #22080000000000000000000115afb57b ->  4294967297
+
+-- VG testcase
+decq840 apply    #2080000000000000F294000000172636 -> 8.81125000000001349436E-1548
+decq841 apply    #20800000000000008000000000000000 -> 8.000000000000000000E-1550
+decq842 apply    #1EF98490000000010F6E4E0000000000 -> 7.049000000000010795488000000000000E-3097
+decq843 multiply #20800000000000008000000000000000 #2080000000000000F294000000172636 -> #1EF98490000000010F6E4E0000000000 Rounded
+

Modified: python/trunk/Lib/test/decimaltestdata/dqFMA.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqFMA.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqFMA.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1
@@ -1754,6 +1754,31 @@
 dqadd375088 fma  1  12398765432112345678945678 1E-34                   -> 12398765432112345678945678.00000001 Inexact Rounded
 dqadd375089 fma  1  12398765432112345678945678 1E-35                   -> 12398765432112345678945678.00000001 Inexact Rounded
 
+-- Destructive subtract (from remainder tests)
+
+-- +++ some of these will be off-by-one remainder vs remainderNear
+
+dqfma4000  fma  -1234567890123456789012345678901233   1.000000000000000000000000000000001    1234567890123456789012345678901234  ->  -0.234567890123456789012345678901233
+dqfma4001  fma  -1234567890123456789012345678901222    1.00000000000000000000000000000001    1234567890123456789012345678901234  ->  -0.34567890123456789012345678901222
+dqfma4002  fma  -1234567890123456789012345678901111     1.0000000000000000000000000000001    1234567890123456789012345678901234  ->  -0.4567890123456789012345678901111
+dqfma4003  fma   -308641972530864197253086419725314   4.000000000000000000000000000000001    1234567890123456789012345678901255  ->  -1.308641972530864197253086419725314
+dqfma4004  fma   -308641972530864197253086419725308   4.000000000000000000000000000000001    1234567890123456789012345678901234  ->  1.691358027469135802746913580274692
+dqfma4005  fma   -246913578024691357802469135780252     4.9999999999999999999999999999999    1234567890123456789012345678901234  ->  -1.3086421975308642197530864219748
+dqfma4006  fma   -246913578024691357802469135780247    4.99999999999999999999999999999999    1234567890123456789012345678901234  ->  1.46913578024691357802469135780247
+dqfma4007  fma   -246913578024691357802469135780247   4.999999999999999999999999999999999    1234567890123456789012345678901234  ->  -0.753086421975308642197530864219753
+dqfma4008  fma   -246913578024691357802469135780247   5.000000000000000000000000000000001    1234567890123456789012345678901234  ->  -1.246913578024691357802469135780247
+dqfma4009  fma   -246913578024691357802469135780246    5.00000000000000000000000000000001    1234567890123456789012345678901234  ->  1.53086421975308642197530864219754
+dqfma4010  fma   -246913578024691357802469135780242     5.0000000000000000000000000000001    1234567890123456789012345678901234  ->  -0.6913578024691357802469135780242
+dqfma4011  fma  -1234567890123456789012345678901232   1.000000000000000000000000000000001    1234567890123456789012345678901234  ->  0.765432109876543210987654321098768
+dqfma4012  fma  -1234567890123456789012345678901221    1.00000000000000000000000000000001    1234567890123456789012345678901234  ->  0.65432109876543210987654321098779
+dqfma4013  fma  -1234567890123456789012345678901110     1.0000000000000000000000000000001    1234567890123456789012345678901234  ->  0.5432109876543210987654321098890
+dqfma4014  fma   -308641972530864197253086419725313   4.000000000000000000000000000000001    1234567890123456789012345678901255  ->  2.691358027469135802746913580274687
+dqfma4015  fma   -308641972530864197253086419725308   4.000000000000000000000000000000001    1234567890123456789012345678901234  ->  1.691358027469135802746913580274692
+dqfma4016  fma   -246913578024691357802469135780251     4.9999999999999999999999999999999    1234567890123456789012345678901234  ->  3.6913578024691357802469135780251
+dqfma4017  fma   -246913578024691357802469135780247    4.99999999999999999999999999999999    1234567890123456789012345678901234  ->  1.46913578024691357802469135780247
+dqfma4018  fma   -246913578024691357802469135780246   4.999999999999999999999999999999999    1234567890123456789012345678901234  ->  4.246913578024691357802469135780246
+dqfma4019  fma   -246913578024691357802469135780241     5.0000000000000000000000000000001    1234567890123456789012345678901234  ->  4.3086421975308642197530864219759
+
 -- Null tests
 dqadd39990 fma  1  10  # -> NaN Invalid_operation
 dqadd39991 fma  1   # 10 -> NaN Invalid_operation

Modified: python/trunk/Lib/test/decimaltestdata/dqInvert.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqInvert.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqInvert.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqLogB.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqLogB.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqLogB.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqMax.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqMax.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqMax.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/dqMaxMag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqMaxMag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqMaxMag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/dqMin.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqMin.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqMin.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/dqMinMag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqMinMag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqMinMag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/dqMinus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqMinus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqMinus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqMultiply.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqMultiply.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqMultiply.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests are for decQuads only; all arguments are
 -- representable in a decQuad
@@ -456,18 +456,134 @@
 
 -- hugest
 dqmul909 multiply 9999999999999999999999999999999999 9999999999999999999999999999999999 -> 9.999999999999999999999999999999998E+67 Inexact Rounded
+-- VG case
+dqmul910 multiply 8.81125000000001349436E-1548 8.000000000000000000E-1550 -> 7.049000000000010795488000000000000E-3097 Rounded
 
 -- Examples from SQL proposal (Krishna Kulkarni)
 precision:   34
 rounding:    half_up
 maxExponent: 6144
 minExponent: -6143
-dqmul1001  multiply 130E-2  120E-2 -> 1.5600
-dqmul1002  multiply 130E-2  12E-1  -> 1.560
-dqmul1003  multiply 130E-2  1E0    -> 1.30
-dqmul1004  multiply 1E2     1E4    -> 1E+6
+dqmul911  multiply 130E-2  120E-2 -> 1.5600
+dqmul912  multiply 130E-2  12E-1  -> 1.560
+dqmul913  multiply 130E-2  1E0    -> 1.30
+dqmul914  multiply 1E2     1E4    -> 1E+6
+
+-- power-of-ten edge cases
+dqmul1001 multiply  1      10               -> 10
+dqmul1002 multiply  1      100              -> 100
+dqmul1003 multiply  1      1000             -> 1000
+dqmul1004 multiply  1      10000            -> 10000
+dqmul1005 multiply  1      100000           -> 100000
+dqmul1006 multiply  1      1000000          -> 1000000
+dqmul1007 multiply  1      10000000         -> 10000000
+dqmul1008 multiply  1      100000000        -> 100000000
+dqmul1009 multiply  1      1000000000       -> 1000000000
+dqmul1010 multiply  1      10000000000      -> 10000000000
+dqmul1011 multiply  1      100000000000     -> 100000000000
+dqmul1012 multiply  1      1000000000000    -> 1000000000000
+dqmul1013 multiply  1      10000000000000   -> 10000000000000
+dqmul1014 multiply  1      100000000000000  -> 100000000000000
+dqmul1015 multiply  1      1000000000000000 -> 1000000000000000
+
+dqmul1016 multiply  1      1000000000000000000 -> 1000000000000000000
+dqmul1017 multiply  1      100000000000000000000000000 -> 100000000000000000000000000
+dqmul1018 multiply  1      1000000000000000000000000000 -> 1000000000000000000000000000
+dqmul1019 multiply  1      10000000000000000000000000000 -> 10000000000000000000000000000
+dqmul1020 multiply  1      1000000000000000000000000000000000 -> 1000000000000000000000000000000000
+
+dqmul1021 multiply  10     1                -> 10
+dqmul1022 multiply  10     10               -> 100
+dqmul1023 multiply  10     100              -> 1000
+dqmul1024 multiply  10     1000             -> 10000
+dqmul1025 multiply  10     10000            -> 100000
+dqmul1026 multiply  10     100000           -> 1000000
+dqmul1027 multiply  10     1000000          -> 10000000
+dqmul1028 multiply  10     10000000         -> 100000000
+dqmul1029 multiply  10     100000000        -> 1000000000
+dqmul1030 multiply  10     1000000000       -> 10000000000
+dqmul1031 multiply  10     10000000000      -> 100000000000
+dqmul1032 multiply  10     100000000000     -> 1000000000000
+dqmul1033 multiply  10     1000000000000    -> 10000000000000
+dqmul1034 multiply  10     10000000000000   -> 100000000000000
+dqmul1035 multiply  10     100000000000000  -> 1000000000000000
+
+dqmul1036 multiply  10     100000000000000000 -> 1000000000000000000
+dqmul1037 multiply  10     10000000000000000000000000 -> 100000000000000000000000000
+dqmul1038 multiply  10     100000000000000000000000000 -> 1000000000000000000000000000
+dqmul1039 multiply  10     1000000000000000000000000000 -> 10000000000000000000000000000
+dqmul1040 multiply  10     100000000000000000000000000000000 -> 1000000000000000000000000000000000
+
+dqmul1041 multiply  100    0.1              -> 10.0
+dqmul1042 multiply  100    1                -> 100
+dqmul1043 multiply  100    10               -> 1000
+dqmul1044 multiply  100    100              -> 10000
+dqmul1045 multiply  100    1000             -> 100000
+dqmul1046 multiply  100    10000            -> 1000000
+dqmul1047 multiply  100    100000           -> 10000000
+dqmul1048 multiply  100    1000000          -> 100000000
+dqmul1049 multiply  100    10000000         -> 1000000000
+dqmul1050 multiply  100    100000000        -> 10000000000
+dqmul1051 multiply  100    1000000000       -> 100000000000
+dqmul1052 multiply  100    10000000000      -> 1000000000000
+dqmul1053 multiply  100    100000000000     -> 10000000000000
+dqmul1054 multiply  100    1000000000000    -> 100000000000000
+dqmul1055 multiply  100    10000000000000   -> 1000000000000000
+
+dqmul1056 multiply  100    10000000000000000 -> 1000000000000000000
+dqmul1057 multiply  100    1000000000000000000000000 -> 100000000000000000000000000
+dqmul1058 multiply  100    10000000000000000000000000 -> 1000000000000000000000000000
+dqmul1059 multiply  100    100000000000000000000000000 -> 10000000000000000000000000000
+dqmul1060 multiply  100    10000000000000000000000000000000 -> 1000000000000000000000000000000000
+
+dqmul1061 multiply  1000   0.01             -> 10.00
+dqmul1062 multiply  1000   0.1              -> 100.0
+dqmul1063 multiply  1000   1                -> 1000
+dqmul1064 multiply  1000   10               -> 10000
+dqmul1065 multiply  1000   100              -> 100000
+dqmul1066 multiply  1000   1000             -> 1000000
+dqmul1067 multiply  1000   10000            -> 10000000
+dqmul1068 multiply  1000   100000           -> 100000000
+dqmul1069 multiply  1000   1000000          -> 1000000000
+dqmul1070 multiply  1000   10000000         -> 10000000000
+dqmul1071 multiply  1000   100000000        -> 100000000000
+dqmul1072 multiply  1000   1000000000       -> 1000000000000
+dqmul1073 multiply  1000   10000000000      -> 10000000000000
+dqmul1074 multiply  1000   100000000000     -> 100000000000000
+dqmul1075 multiply  1000   1000000000000    -> 1000000000000000
+
+dqmul1076 multiply  1000   1000000000000000 -> 1000000000000000000
+dqmul1077 multiply  1000   100000000000000000000000 -> 100000000000000000000000000
+dqmul1078 multiply  1000   1000000000000000000000000 -> 1000000000000000000000000000
+dqmul1079 multiply  1000   10000000000000000000000000 -> 10000000000000000000000000000
+dqmul1080 multiply  1000   1000000000000000000000000000000 -> 1000000000000000000000000000000000
+
+dqmul1081 multiply  10000  0.001            -> 10.000
+dqmul1082 multiply  10000  0.01             -> 100.00
+dqmul1083 multiply  10000  0.1              -> 1000.0
+dqmul1084 multiply  10000  1                -> 10000
+dqmul1085 multiply  10000  10               -> 100000
+dqmul1086 multiply  10000  100              -> 1000000
+dqmul1087 multiply  10000  1000             -> 10000000
+dqmul1088 multiply  10000  10000            -> 100000000
+dqmul1089 multiply  10000  100000           -> 1000000000
+dqmul1090 multiply  10000  1000000          -> 10000000000
+dqmul1091 multiply  10000  10000000         -> 100000000000
+dqmul1092 multiply  10000  100000000        -> 1000000000000
+dqmul1093 multiply  10000  1000000000       -> 10000000000000
+dqmul1094 multiply  10000  10000000000      -> 100000000000000
+dqmul1095 multiply  10000  100000000000     -> 1000000000000000
+
+dqmul1096 multiply  10000  100000000000000 -> 1000000000000000000
+dqmul1097 multiply  10000  10000000000000000000000 -> 100000000000000000000000000
+dqmul1098 multiply  10000  100000000000000000000000 -> 1000000000000000000000000000
+dqmul1099 multiply  10000  1000000000000000000000000 -> 10000000000000000000000000000
+dqmul1100 multiply  10000  100000000000000000000000000000 -> 1000000000000000000000000000000000
+
+dqmul1107 multiply  10000   99999999999     ->  999999999990000
+dqmul1108 multiply  10000   99999999999     ->  999999999990000
 
 -- Null tests
-dqmul990 multiply 10  # -> NaN Invalid_operation
-dqmul991 multiply  # 10 -> NaN Invalid_operation
+dqmul9990 multiply 10  # -> NaN Invalid_operation
+dqmul9991 multiply  # 10 -> NaN Invalid_operation
 

Modified: python/trunk/Lib/test/decimaltestdata/dqNextMinus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqNextMinus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqNextMinus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqNextPlus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqNextPlus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqNextPlus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqNextToward.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqNextToward.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqNextToward.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqOr.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqOr.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqOr.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqPlus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqPlus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqPlus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqQuantize.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqQuantize.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqQuantize.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Most of the tests here assume a "regular pattern", where the
 -- sign and coefficient are +1.

Modified: python/trunk/Lib/test/decimaltestdata/dqReduce.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqReduce.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqReduce.decTest	Fri Nov 23 19:14:50 2007
@@ -18,7 +18,7 @@
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
 
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqRemainder.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqRemainder.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqRemainder.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1
@@ -580,6 +580,17 @@
 -- Gyuris example
 dqrem1070 remainder 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 8.336804418094040989630006819881709E-6143
 
+-- destructive subtract
+dqrem1120  remainder  1234567890123456789012345678901234  1.000000000000000000000000000000001  ->  0.765432109876543210987654321098768
+dqrem1121  remainder  1234567890123456789012345678901234   1.00000000000000000000000000000001  ->   0.65432109876543210987654321098779
+dqrem1122  remainder  1234567890123456789012345678901234    1.0000000000000000000000000000001  ->    0.5432109876543210987654321098890
+dqrem1123  remainder  1234567890123456789012345678901255  4.000000000000000000000000000000001  ->  2.691358027469135802746913580274687
+dqrem1124  remainder  1234567890123456789012345678901234  4.000000000000000000000000000000001  ->  1.691358027469135802746913580274692
+dqrem1125  remainder  1234567890123456789012345678901234    4.9999999999999999999999999999999  ->    3.6913578024691357802469135780251
+dqrem1126  remainder  1234567890123456789012345678901234   4.99999999999999999999999999999999  ->   1.46913578024691357802469135780247
+dqrem1127  remainder  1234567890123456789012345678901234  4.999999999999999999999999999999999  ->  4.246913578024691357802469135780246
+dqrem1128  remainder  1234567890123456789012345678901234    5.0000000000000000000000000000001  ->    4.3086421975308642197530864219759
+
 -- Null tests
 dqrem1000 remainder 10  # -> NaN Invalid_operation
 dqrem1001 remainder  # 10 -> NaN Invalid_operation

Modified: python/trunk/Lib/test/decimaltestdata/dqRemainderNear.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqRemainderNear.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqRemainderNear.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1
@@ -612,6 +612,19 @@
 -- Gyuris example
 dqrmn1070 remainder 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 8.336804418094040989630006819881709E-6143
 
+-- destructive subtract
+dqrmn1101  remaindernear  1234567890123456789012345678901234  1.000000000000000000000000000000001  ->  -0.234567890123456789012345678901233
+dqrmn1102  remaindernear  1234567890123456789012345678901234   1.00000000000000000000000000000001  ->   -0.34567890123456789012345678901222
+dqrmn1103  remaindernear  1234567890123456789012345678901234    1.0000000000000000000000000000001  ->    -0.4567890123456789012345678901111
+dqrmn1104  remaindernear  1234567890123456789012345678901255  4.000000000000000000000000000000001  ->  -1.308641972530864197253086419725314
+dqrmn1105  remaindernear  1234567890123456789012345678901234  4.000000000000000000000000000000001  ->   1.691358027469135802746913580274692
+dqrmn1106  remaindernear  1234567890123456789012345678901234    4.9999999999999999999999999999999  ->    -1.3086421975308642197530864219748
+dqrmn1107  remaindernear  1234567890123456789012345678901234   4.99999999999999999999999999999999  ->    1.46913578024691357802469135780247
+dqrmn1108  remaindernear  1234567890123456789012345678901234  4.999999999999999999999999999999999  ->  -0.753086421975308642197530864219753
+dqrmn1109  remaindernear  1234567890123456789012345678901234  5.000000000000000000000000000000001  ->  -1.246913578024691357802469135780247
+dqrmn1110  remaindernear  1234567890123456789012345678901234   5.00000000000000000000000000000001  ->    1.53086421975308642197530864219754
+dqrmn1111  remaindernear  1234567890123456789012345678901234    5.0000000000000000000000000000001  ->    -0.6913578024691357802469135780242
+
 -- Null tests
 dqrmn1000 remaindernear 10  # -> NaN Invalid_operation
 dqrmn1001 remaindernear  # 10 -> NaN Invalid_operation

Modified: python/trunk/Lib/test/decimaltestdata/dqRotate.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqRotate.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqRotate.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqSameQuantum.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqSameQuantum.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqSameQuantum.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- All operands and results are decQuads.
 extended:    1

Modified: python/trunk/Lib/test/decimaltestdata/dqScaleB.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqScaleB.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqScaleB.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqShift.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqShift.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqShift.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dqSubtract.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqSubtract.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqSubtract.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests are for decQuads only; all arguments are
 -- representable in a decQuad

Modified: python/trunk/Lib/test/decimaltestdata/dqToIntegral.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqToIntegral.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqToIntegral.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests tests the extended specification 'round-to-integral
 -- value-exact' operations (from IEEE 854, later modified in 754r).

Modified: python/trunk/Lib/test/decimaltestdata/dqXor.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dqXor.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dqXor.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 clamp:       1

Modified: python/trunk/Lib/test/decimaltestdata/dsBase.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dsBase.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dsBase.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This file tests base conversions from string to a decimal number
 -- and back to a string (in Scientific form)
@@ -1058,4 +1058,5 @@
 dsbas1107 toSci +1E-383 ->  0E-101 Inexact Rounded Subnormal Underflow Clamped
 dsbas1108 toSci +9.999999999999999E+384 ->  Infinity Overflow Inexact Rounded
 
-
+-- narrowing case
+dsbas1110 toSci 2.000000000000000E-99 -> 2.00E-99 Rounded Subnormal

Modified: python/trunk/Lib/test/decimaltestdata/dsEncode.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/dsEncode.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/dsEncode.decTest	Fri Nov 23 19:14:50 2007
@@ -18,7 +18,7 @@
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
 -- [Previously called decimal32.decTest]
-version: 2.56
+version: 2.57
 
 -- This set of tests is for the four-byte concrete representation.
 -- Its characteristics are:
@@ -367,3 +367,6 @@
 decs786 apply   #225002ff       -> 999
 decs787 apply   #225003ff       -> 999
 
+-- narrowing case
+decs790 apply 2.00E-99 -> #00000100 Subnormal
+decs791 apply #00000100 -> 2.00E-99 Subnormal

Modified: python/trunk/Lib/test/decimaltestdata/exp.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/exp.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/exp.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Tests of the exponential funtion.  Currently all testcases here
 -- show results which are correctly rounded (within <= 0.5 ulp).

Modified: python/trunk/Lib/test/decimaltestdata/fma.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/fma.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/fma.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/inexact.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/inexact.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/inexact.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/invert.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/invert.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/invert.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/ln.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/ln.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/ln.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   16

Modified: python/trunk/Lib/test/decimaltestdata/log10.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/log10.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/log10.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This emphasises the testing of notable cases, as they will often
 -- have unusual paths (especially the 10**n results).

Modified: python/trunk/Lib/test/decimaltestdata/logb.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/logb.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/logb.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This emphasises the testing of notable cases, as they will often
 -- have unusual paths (especially the 10**n results).

Modified: python/trunk/Lib/test/decimaltestdata/max.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/max.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/max.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/maxmag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/maxmag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/maxmag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/min.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/min.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/min.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/minmag.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/minmag.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/minmag.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- we assume that base comparison is tested in compare.decTest, so
 -- these mainly cover special cases and rounding

Modified: python/trunk/Lib/test/decimaltestdata/minus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/minus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/minus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests primarily tests the existence of the operator.
 -- Subtraction, rounding, and more overflows are tested elsewhere.

Modified: python/trunk/Lib/test/decimaltestdata/multiply.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/multiply.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/multiply.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/nextminus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/nextminus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/nextminus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/nextplus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/nextplus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/nextplus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/nexttoward.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/nexttoward.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/nexttoward.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/or.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/or.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/or.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/plus.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/plus.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/plus.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests primarily tests the existence of the operator.
 -- Addition and rounding, and most overflows, are tested elsewhere.

Modified: python/trunk/Lib/test/decimaltestdata/power.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/power.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/power.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- In addition to the power operator testcases here, see also the file
 -- powersqrt.decTest which includes all the tests from

Modified: python/trunk/Lib/test/decimaltestdata/powersqrt.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/powersqrt.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/powersqrt.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- These testcases are taken from squareroot.decTest but are
 -- evaluated using the power operator.  The differences in results

Modified: python/trunk/Lib/test/decimaltestdata/quantize.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/quantize.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/quantize.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- Most of the tests here assume a "regular pattern", where the
 -- sign and coefficient are +1.

Modified: python/trunk/Lib/test/decimaltestdata/randomBound32.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/randomBound32.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/randomBound32.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.55
+version: 2.57
 
 -- These testcases test calculations at precisions 31, 32, and 33, to
 -- exercise the boundaries around 2**5

Modified: python/trunk/Lib/test/decimaltestdata/randoms.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/randoms.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/randoms.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 maxexponent: 999999999

Modified: python/trunk/Lib/test/decimaltestdata/reduce.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/reduce.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/reduce.decTest	Fri Nov 23 19:14:50 2007
@@ -19,7 +19,7 @@
 ------------------------------------------------------------------------
 -- [This used to be called normalize.]
 
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/remainder.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/remainder.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/remainder.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/remainderNear.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/remainderNear.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/remainderNear.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.55
+version: 2.57
 
 extended:    1
 precision:   9
@@ -413,6 +413,18 @@
 rmnx606 remaindernear  31.5 3  -> 1.5    -- i=10
 rmnx607 remaindernear  34.5 3  -> -1.5   -- i=11
 
+-- zero signs
+rmnx650 remaindernear  1  1 ->  0
+rmnx651 remaindernear -1  1 -> -0
+rmnx652 remaindernear  1 -1 ->  0
+rmnx653 remaindernear -1 -1 -> -0
+rmnx654 remaindernear  0  1 ->  0
+rmnx655 remaindernear -0  1 -> -0
+rmnx656 remaindernear  0 -1 ->  0
+rmnx657 remaindernear -0 -1 -> -0
+rmnx658 remaindernear  0.00  1  ->  0.00
+rmnx659 remaindernear -0.00  1  -> -0.00
+
 -- Specials
 rmnx680 remaindernear  Inf  -Inf   ->  NaN Invalid_operation
 rmnx681 remaindernear  Inf  -1000  ->  NaN Invalid_operation

Modified: python/trunk/Lib/test/decimaltestdata/rescale.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/rescale.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/rescale.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- [obsolete]   Quantize.decTest has the improved version
 

Modified: python/trunk/Lib/test/decimaltestdata/rotate.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/rotate.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/rotate.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/rounding.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/rounding.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/rounding.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- These tests require that implementations take account of residues in
 -- order to get correct results for some rounding modes.  Rather than

Modified: python/trunk/Lib/test/decimaltestdata/samequantum.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/samequantum.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/samequantum.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/scaleb.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/scaleb.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/scaleb.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/shift.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/shift.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/shift.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/squareroot.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/squareroot.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/squareroot.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/subtract.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/subtract.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/subtract.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9

Modified: python/trunk/Lib/test/decimaltestdata/testall.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/testall.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/testall.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- core tests (using Extended: 1) --------------------------------------
 dectest: base

Modified: python/trunk/Lib/test/decimaltestdata/tointegral.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/tointegral.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/tointegral.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests tests the extended specification 'round-to-integral
 -- value' operation (from IEEE 854, later modified in 754r).

Modified: python/trunk/Lib/test/decimaltestdata/tointegralx.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/tointegralx.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/tointegralx.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 -- This set of tests tests the extended specification 'round-to-integral
 -- value' operation (from IEEE 854, later modified in 754r).

Modified: python/trunk/Lib/test/decimaltestdata/xor.decTest
==============================================================================
--- python/trunk/Lib/test/decimaltestdata/xor.decTest	(original)
+++ python/trunk/Lib/test/decimaltestdata/xor.decTest	Fri Nov 23 19:14:50 2007
@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
 --   mfc at uk.ibm.com                                                   --
 ------------------------------------------------------------------------
-version: 2.56
+version: 2.57
 
 extended:    1
 precision:   9


More information about the Python-checkins mailing list