cpython/Lib/test/decimaltestdata
Facundo Batista 1a191df14d Made the various is_* operations return booleans. This was discussed
with Cawlishaw by mail, and he basically confirmed that to these is_*
operations, there's no need to return Decimal(0) and Decimal(1) if
the language supports the False and True booleans.

Also added a few tests for the these functions in extra.decTest, since
they are mostly untested (apart from the doctests).

Thanks Mark Dickinson
2007-10-02 17:01:24 +00:00
..
abs.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
add.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
and.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
base.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
clamp.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
class.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
compare.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
comparetotal.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
comparetotmag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
copy.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
copyabs.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
copynegate.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
copysign.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddAbs.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddAdd.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddAnd.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddBase.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCanonical.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddClass.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCompare.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCompareSig.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCompareTotal.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCompareTotalMag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCopy.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCopyAbs.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCopyNegate.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddCopySign.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddDivide.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddDivideInt.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddEncode.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddFMA.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddInvert.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddLogB.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddMax.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddMaxMag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddMin.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddMinMag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddMinus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddMultiply.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddNextMinus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddNextPlus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddNextToward.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddOr.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddPlus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddQuantize.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddReduce.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddRemainder.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddRemainderNear.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddRotate.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddSameQuantum.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddScaleB.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddShift.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddSubtract.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddToIntegral.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ddXor.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
decDouble.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
decQuad.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
decSingle.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
divide.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
divideint.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqAbs.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqAdd.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqAnd.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqBase.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCanonical.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqClass.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCompare.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCompareSig.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCompareTotal.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCompareTotalMag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCopy.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCopyAbs.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCopyNegate.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqCopySign.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqDivide.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqDivideInt.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqEncode.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqFMA.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqInvert.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqLogB.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqMax.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqMaxMag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqMin.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqMinMag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqMinus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqMultiply.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqNextMinus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqNextPlus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqNextToward.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqOr.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqPlus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqQuantize.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqReduce.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqRemainder.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqRemainderNear.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqRotate.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqSameQuantum.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqScaleB.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqShift.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqSubtract.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqToIntegral.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dqXor.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dsBase.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
dsEncode.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
exp.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
extra.decTest Made the various is_* operations return booleans. This was discussed 2007-10-02 17:01:24 +00:00
fma.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
inexact.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
invert.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
ln.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
log10.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
logb.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
max.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
maxmag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
min.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
minmag.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
minus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
multiply.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
nextminus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
nextplus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
nexttoward.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
or.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
plus.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
power.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
powersqrt.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
quantize.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
randomBound32.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
randoms.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
reduce.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
remainder.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
remainderNear.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
rescale.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
rotate.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
rounding.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
samequantum.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
scaleb.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
shift.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
squareroot.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
subtract.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
testall.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
tointegral.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
tointegralx.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00
xor.decTest Merged the decimal-branch (revisions 54886 to 58140). Decimal is now 2007-09-13 18:13:15 +00:00