[Python-checkins] python/nondist/sandbox/decimal/tests abs.decTest,1.1,1.2 add.decTest,1.1,1.2 base.decTest,1.1,1.2 clamp.decTest,1.1,1.2 compare.decTest,1.1,1.2 decimal64.decTest,1.1,1.2 divide.decTest,1.1,1.2 divideint.decTest,1.1,1.2 inexact.decTest,1.1,1.2 integer.decTest,1.1,1.2 max.decTest,1.1,1.2 min.decTest,1.1,1.2 minus.decTest,1.1,1.2 multiply.decTest,1.1,1.2 normalize.decTest,1.1,1.2 plus.decTest,1.1,1.2 power.decTest,1.1,1.2 randomBound32.decTest,1.1,1.2 randoms.decTest,1.1,1.2 remainder.decTest,1.1,1.2 remainderNear.decTest,1.1,1.2 rescale.decTest,1.1,1.2 rounding.decTest,1.1,1.2 squareroot.decTest,1.1,1.2 subtract.decTest,1.1,1.2 testall.decTest,1.1,1.2 trim.decTest,1.1,1.2
eprice@users.sourceforge.net
eprice@users.sourceforge.net
Tue, 27 May 2003 15:46:43 -0700
Update of /cvsroot/python/python/nondist/sandbox/decimal/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv14021/tests
Modified Files:
abs.decTest add.decTest base.decTest clamp.decTest
compare.decTest decimal64.decTest divide.decTest
divideint.decTest inexact.decTest integer.decTest max.decTest
min.decTest minus.decTest multiply.decTest normalize.decTest
plus.decTest power.decTest randomBound32.decTest
randoms.decTest remainder.decTest remainderNear.decTest
rescale.decTest rounding.decTest squareroot.decTest
subtract.decTest testall.decTest trim.decTest
Log Message:
Updating tests since the new ones are incompatible with the old ones.
Index: abs.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/abs.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** abs.decTest 2 May 2003 23:07:35 -0000 1.1
--- abs.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This set of tests primarily tests the existence of the operator.
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This set of tests primarily tests the existence of the operator.
Index: add.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/add.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** add.decTest 2 May 2003 23:07:35 -0000 1.1
--- add.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
precision: 9
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
precision: 9
***************
*** 752,756 ****
addx733 add 0 -0 -> 0
addx734 add -0 0 -> 0
! addx735 add -0 -0 -> -0 -- IEEE 854 exception
addx736 add 1 -1 -> 0
--- 752,756 ----
addx733 add 0 -0 -> 0
addx734 add -0 0 -> 0
! addx735 add -0 -0 -> -0 -- IEEE 854 special case
addx736 add 1 -1 -> 0
Index: base.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/base.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** base.decTest 2 May 2003 23:07:35 -0000 1.1
--- base.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This file tests base conversions from string to a decimal number
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This file tests base conversions from string to a decimal number
Index: clamp.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/clamp.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** clamp.decTest 2 May 2003 23:07:35 -0000 1.1
--- clamp.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This set of tests uses the same limits as the 8-byte concrete
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This set of tests uses the same limits as the 8-byte concrete
Index: compare.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/compare.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** compare.decTest 2 May 2003 23:07:35 -0000 1.1
--- compare.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- Note that we cannot assume add/subtract tests cover paths adequately,
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- Note that we cannot assume add/subtract tests cover paths adequately,
Index: decimal64.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/decimal64.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** decimal64.decTest 2 May 2003 23:07:35 -0000 1.1
--- decimal64.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This set of tests is for the eight-byte concrete representation.
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This set of tests is for the eight-byte concrete representation.
Index: divide.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/divide.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** divide.decTest 2 May 2003 23:07:35 -0000 1.1
--- divide.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
***************
*** 184,201 ****
divx306 divide 0 7E+6 -> 0.000000
divx307 divide 0 7E+7 -> 0E-7
! divx308 divide 0 70E-5 -> 0E+4
! divx309 divide 0 70E-1 -> 0
! divx310 divide 0 70E+0 -> 0.0
! divx311 divide 0 70E+1 -> 0.00
! divx312 divide 0 70E+5 -> 0.000000
! divx313 divide 0 70E+6 -> 0E-7
! divx314 divide 0 70E+7 -> 0E-8
! divx315 divide 0 700E-5 -> 0E+3
! divx316 divide 0 700E-1 -> 0.0
! divx317 divide 0 700E+0 -> 0.00
! divx318 divide 0 700E+1 -> 0.000
! divx319 divide 0 700E+5 -> 0E-7
! divx320 divide 0 700E+6 -> 0E-8
! divx321 divide 0 700E+7 -> 0E-9
divx331 divide 0E-3 7E-5 -> 0E+2
--- 184,202 ----
divx306 divide 0 7E+6 -> 0.000000
divx307 divide 0 7E+7 -> 0E-7
! divx308 divide 0 70E-5 -> 0E+5
! divx309 divide 0 70E-1 -> 0E+1
! divx310 divide 0 70E+0 -> 0
! divx311 divide 0 70E+1 -> 0.0
! divx312 divide 0 70E+5 -> 0.00000
! divx313 divide 0 70E+6 -> 0.000000
! divx314 divide 0 70E+7 -> 0E-7
! divx315 divide 0 700E-5 -> 0E+5
! divx316 divide 0 700E-1 -> 0E+1
! divx317 divide 0 700E+0 -> 0
! divx318 divide 0 700E+1 -> 0.0
! divx319 divide 0 700E+5 -> 0.00000
! divx320 divide 0 700E+6 -> 0.000000
! divx321 divide 0 700E+7 -> 0E-7
! divx322 divide 0 700E+77 -> 0E-77
divx331 divide 0E-3 7E-5 -> 0E+2
***************
*** 224,241 ****
divx354 divide 0E-92 7E+6 -> 0E-98
divx355 divide 0E-92 7E+7 -> 0E-98 Clamped
! divx356 divide 0E-92 777E-1 -> 0E-93
! divx357 divide 0E-92 777E+1 -> 0E-95
! divx358 divide 0E-92 777E+3 -> 0E-97
! divx359 divide 0E-92 777E+4 -> 0E-98
! divx360 divide 0E-92 777E+5 -> 0E-98 Clamped
! divx361 divide 0E+92 7E+1 -> 0E+91
! divx362 divide 0E+92 7E+0 -> 0E+92
! divx363 divide 0E+92 7E-1 -> 0E+92 Clamped
! divx364 divide 0E+92 777E+1 -> 0E+89
! divx365 divide 0E+92 777E-1 -> 0E+91
! divx366 divide 0E+92 777E-2 -> 0E+92
! divx367 divide 0E+92 777E-3 -> 0E+92 Clamped
! divx368 divide 0E+92 777E-4 -> 0E+92 Clamped
-- input rounding checks
--- 225,259 ----
divx354 divide 0E-92 7E+6 -> 0E-98
divx355 divide 0E-92 7E+7 -> 0E-98 Clamped
! divx356 divide 0E-92 777E-1 -> 0E-91
! divx357 divide 0E-92 777E+1 -> 0E-93
! divx358 divide 0E-92 777E+3 -> 0E-95
! divx359 divide 0E-92 777E+4 -> 0E-96
! divx360 divide 0E-92 777E+5 -> 0E-97
! divx361 divide 0E-92 777E+6 -> 0E-98
! divx362 divide 0E-92 777E+7 -> 0E-98 Clamped
! divx363 divide 0E-92 7E+92 -> 0E-98 Clamped
! divx371 divide 0E-92 700E-1 -> 0E-91
! divx372 divide 0E-92 700E+1 -> 0E-93
! divx373 divide 0E-92 700E+3 -> 0E-95
! divx374 divide 0E-92 700E+4 -> 0E-96
! divx375 divide 0E-92 700E+5 -> 0E-97
! divx376 divide 0E-92 700E+6 -> 0E-98
! divx377 divide 0E-92 700E+7 -> 0E-98 Clamped
!
! divx381 divide 0E+92 7E+1 -> 0E+91
! divx382 divide 0E+92 7E+0 -> 0E+92
! divx383 divide 0E+92 7E-1 -> 0E+92 Clamped
! divx384 divide 0E+90 777E+1 -> 0E+89
! divx385 divide 0E+90 777E-1 -> 0E+91
! divx386 divide 0E+90 777E-2 -> 0E+92
! divx387 divide 0E+90 777E-3 -> 0E+92 Clamped
! divx388 divide 0E+90 777E-4 -> 0E+92 Clamped
!
! divx391 divide 0E+90 700E+1 -> 0E+89
! divx392 divide 0E+90 700E-1 -> 0E+91
! divx393 divide 0E+90 700E-2 -> 0E+92
! divx394 divide 0E+90 700E-3 -> 0E+92 Clamped
! divx395 divide 0E+90 700E-4 -> 0E+92 Clamped
-- input rounding checks
***************
*** 286,290 ****
divx452 divide 1 1234567896 -> 8.10000003434400E-10 Inexact Rounded
! -- some suggested by Dan Zuras
divx460 divide 3e0 2e0 -> 1.5
divx461 divide 30e-1 2e0 -> 1.5
--- 304,308 ----
divx452 divide 1 1234567896 -> 8.10000003434400E-10 Inexact Rounded
! -- some from IEEE discussions
divx460 divide 3e0 2e0 -> 1.5
divx461 divide 30e-1 2e0 -> 1.5
***************
*** 310,313 ****
--- 328,349 ----
divx483 divide 1 10E-33 -> 1E+32
+ -- RMS discussion table
+ maxexponent: 96
+ minexponent: -95
+ precision: 7
+
+ divx484 divide 0e5 1e3 -> 0E+2
+ divx485 divide 0e5 2e3 -> 0E+2
+ divx486 divide 0e5 10e2 -> 0E+3
+ divx487 divide 0e5 20e2 -> 0E+3
+ divx488 divide 0e5 100e1 -> 0E+4
+ divx489 divide 0e5 200e1 -> 0E+4
+
+ divx491 divide 1e5 1e3 -> 1E+2
+ divx492 divide 1e5 2e3 -> 5E+1
+ divx493 divide 1e5 10e2 -> 1E+2
+ divx494 divide 1e5 20e2 -> 5E+1
+ divx495 divide 1e5 100e1 -> 1E+2
+ divx496 divide 1e5 200e1 -> 5E+1
-- tryzeros cases
***************
*** 316,321 ****
maxExponent: 92
minexponent: -92
! divx496 divide 0E+86 1000E-13 -> 0E+92 Clamped
! divx497 divide 0E-98 1000E+13 -> 0E-98 Clamped
precision: 9
--- 352,357 ----
maxExponent: 92
minexponent: -92
! divx497 divide 0E+86 1000E-13 -> 0E+92 Clamped
! divx498 divide 0E-98 1000E+13 -> 0E-98 Clamped
precision: 9
***************
*** 335,378 ****
precision: 9
! divx531 divide 1 2 -> 0.5
! divx532 divide 1.0 2 -> 0.5
! divx533 divide 1.00 2 -> 0.50
! divx534 divide 1.000 2 -> 0.500
! divx535 divide 1.0000 2 -> 0.5000
! divx536 divide 1.00000 2 -> 0.50000
! divx537 divide 1.000000 2 -> 0.500000
! divx538 divide 1.0000000 2 -> 0.5000000
! divx539 divide 1.00 2.00 -> 0.5
! divx541 divide 2 1 -> 2
! divx542 divide 2 1.0 -> 2
! divx543 divide 2 1.00 -> 2
! divx544 divide 2 1.000 -> 2
! divx545 divide 2 1.0000 -> 2
! divx546 divide 2 1.00000 -> 2
! divx547 divide 2 1.000000 -> 2
! divx548 divide 2 1.0000000 -> 2
! divx549 divide 2.00 1.00 -> 2
- divx550 divide 2.40 2 -> 1.20
- divx551 divide 2.40 4 -> 0.60
- divx552 divide 2.40 10 -> 0.24
- divx553 divide 2.40 2.0 -> 1.2
- divx554 divide 2.40 4.0 -> 0.6
- divx555 divide 2.40 10.0 -> 0.24
- divx556 divide 2.40 2.00 -> 1.2
- divx557 divide 2.40 4.00 -> 0.6
- divx558 divide 2.40 10.00 -> 0.24
- divx559 divide 0.9 0.1 -> 9
- divx560 divide 0.9 0.01 -> 9E+1
- divx561 divide 0.9 0.001 -> 9E+2
- divx562 divide 5 2 -> 2.5
- divx563 divide 5 2.0 -> 2.5
- divx564 divide 5 2.00 -> 2.5
- divx565 divide 5 20 -> 0.25
- divx566 divide 5 20.0 -> 0.25
- divx567 divide 2.400 2 -> 1.200
- divx568 divide 2.400 2.0 -> 1.20
- divx569 divide 2.400 2.400 -> 1
-- +ve exponent
precision: 5
--- 371,424 ----
precision: 9
! divx511 divide 1 2 -> 0.5
! divx512 divide 1.0 2 -> 0.5
! divx513 divide 1.00 2 -> 0.50
! divx514 divide 1.000 2 -> 0.500
! divx515 divide 1.0000 2 -> 0.5000
! divx516 divide 1.00000 2 -> 0.50000
! divx517 divide 1.000000 2 -> 0.500000
! divx518 divide 1.0000000 2 -> 0.5000000
! divx519 divide 1.00 2.00 -> 0.5
! divx521 divide 2 1 -> 2
! divx522 divide 2 1.0 -> 2
! divx523 divide 2 1.00 -> 2
! divx524 divide 2 1.000 -> 2
! divx525 divide 2 1.0000 -> 2
! divx526 divide 2 1.00000 -> 2
! divx527 divide 2 1.000000 -> 2
! divx528 divide 2 1.0000000 -> 2
! divx529 divide 2.00 1.00 -> 2
!
! divx530 divide 2.40 2 -> 1.20
! divx531 divide 2.40 4 -> 0.60
! divx532 divide 2.40 10 -> 0.24
! divx533 divide 2.40 2.0 -> 1.2
! divx534 divide 2.40 4.0 -> 0.6
! divx535 divide 2.40 10.0 -> 0.24
! divx536 divide 2.40 2.00 -> 1.2
! divx537 divide 2.40 4.00 -> 0.6
! divx538 divide 2.40 10.00 -> 0.24
! divx539 divide 0.9 0.1 -> 9
! divx540 divide 0.9 0.01 -> 9E+1
! divx541 divide 0.9 0.001 -> 9E+2
! divx542 divide 5 2 -> 2.5
! divx543 divide 5 2.0 -> 2.5
! divx544 divide 5 2.00 -> 2.5
! divx545 divide 5 20 -> 0.25
! divx546 divide 5 20.0 -> 0.25
! divx547 divide 2.400 2 -> 1.200
! divx548 divide 2.400 2.0 -> 1.20
! divx549 divide 2.400 2.400 -> 1
!
! divx550 divide 240 1 -> 240
! divx551 divide 240 10 -> 24
! divx552 divide 240 100 -> 2.4
! divx553 divide 240 1000 -> 0.24
! divx554 divide 2400 1 -> 2400
! divx555 divide 2400 10 -> 240
! divx556 divide 2400 100 -> 24
! divx557 divide 2400 1000 -> 2.4
-- +ve exponent
precision: 5
***************
*** 508,515 ****
divx758 divide 1.0 -0 -> -Infinity Division_by_zero
! divx761 divide 0 -1.0 -> -0
! divx762 divide -0 -1.0 -> 0
! divx763 divide 0 1.0 -> 0
! divx764 divide -0 1.0 -> -0
divx765 divide -1 0.0 -> -Infinity Division_by_zero
divx766 divide -1 -0.0 -> Infinity Division_by_zero
--- 554,561 ----
divx758 divide 1.0 -0 -> -Infinity Division_by_zero
! divx761 divide 0 -1.0 -> -0E+1
! divx762 divide -0 -1.0 -> 0E+1
! divx763 divide 0 1.0 -> 0E+1
! divx764 divide -0 1.0 -> -0E+1
divx765 divide -1 0.0 -> -Infinity Division_by_zero
divx766 divide -1 -0.0 -> Infinity Division_by_zero
***************
*** 517,524 ****
divx768 divide 1 -0.0 -> -Infinity Division_by_zero
! divx771 divide 0.0 -1.0 -> -0.0
! divx772 divide -0.0 -1.0 -> 0.0
! divx773 divide 0.0 1.0 -> 0.0
! divx774 divide -0.0 1.0 -> -0.0
divx775 divide -1.0 0.0 -> -Infinity Division_by_zero
divx776 divide -1.0 -0.0 -> Infinity Division_by_zero
--- 563,570 ----
divx768 divide 1 -0.0 -> -Infinity Division_by_zero
! divx771 divide 0.0 -1.0 -> -0
! divx772 divide -0.0 -1.0 -> 0
! divx773 divide 0.0 1.0 -> 0
! divx774 divide -0.0 1.0 -> -0
divx775 divide -1.0 0.0 -> -Infinity Division_by_zero
divx776 divide -1.0 -0.0 -> Infinity Division_by_zero
***************
*** 535,545 ****
divx786 divide Inf 1000 -> Infinity
divx787 divide Inf Inf -> NaN Invalid_operation
! divx788 divide -1000 Inf -> -0
divx789 divide -Inf Inf -> NaN Invalid_operation
! divx790 divide -1 Inf -> -0
! divx791 divide -0 Inf -> -0
! divx792 divide 0 Inf -> 0
! divx793 divide 1 Inf -> 0
! divx794 divide 1000 Inf -> 0
divx795 divide Inf Inf -> NaN Invalid_operation
--- 581,591 ----
divx786 divide Inf 1000 -> Infinity
divx787 divide Inf Inf -> NaN Invalid_operation
! divx788 divide -1000 Inf -> -0E-1007 Clamped
divx789 divide -Inf Inf -> NaN Invalid_operation
! divx790 divide -1 Inf -> -0E-1007 Clamped
! divx791 divide -0 Inf -> -0E-1007 Clamped
! divx792 divide 0 Inf -> 0E-1007 Clamped
! divx793 divide 1 Inf -> 0E-1007 Clamped
! divx794 divide 1000 Inf -> 0E-1007 Clamped
divx795 divide Inf Inf -> NaN Invalid_operation
***************
*** 552,562 ****
divx806 divide -Inf 1000 -> -Infinity
divx807 divide -Inf Inf -> NaN Invalid_operation
! divx808 divide -1000 Inf -> -0
divx809 divide -Inf -Inf -> NaN Invalid_operation
! divx810 divide -1 -Inf -> 0
! divx811 divide -0 -Inf -> 0
! divx812 divide 0 -Inf -> -0
! divx813 divide 1 -Inf -> -0
! divx814 divide 1000 -Inf -> -0
divx815 divide Inf -Inf -> NaN Invalid_operation
--- 598,608 ----
divx806 divide -Inf 1000 -> -Infinity
divx807 divide -Inf Inf -> NaN Invalid_operation
! divx808 divide -1000 Inf -> -0E-1007 Clamped
divx809 divide -Inf -Inf -> NaN Invalid_operation
! divx810 divide -1 -Inf -> 0E-1007 Clamped
! divx811 divide -0 -Inf -> 0E-1007 Clamped
! divx812 divide 0 -Inf -> -0E-1007 Clamped
! divx813 divide 1 -Inf -> -0E-1007 Clamped
! divx814 divide 1000 -Inf -> -0E-1007 Clamped
divx815 divide Inf -Inf -> NaN Invalid_operation
Index: divideint.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/divideint.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** divideint.decTest 2 May 2003 23:07:35 -0000 1.1
--- divideint.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: inexact.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/inexact.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** inexact.decTest 2 May 2003 23:07:35 -0000 1.1
--- inexact.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: integer.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/integer.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** integer.decTest 2 May 2003 23:07:35 -0000 1.1
--- integer.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This set of tests tests the extended specification 'round-to-integer'
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This set of tests tests the extended specification 'round-to-integer'
***************
*** 76,79 ****
--- 76,81 ----
intx051 integer -1.8 -> -2 Rounded Inexact
intx052 integer -1.9 -> -2 Rounded Inexact
+ intx053 integer 10E+30 -> NaN Invalid_operation
+ intx054 integer -10E+30 -> NaN Invalid_operation
-- numbers around precision
***************
*** 89,94 ****
intx069 integer '56267E+3' -> '56267000'
intx070 integer '56267E+4' -> '562670000'
! intx071 integer '56267E+5' -> Infinity Overflow Inexact Rounded
! intx072 integer '56267E+6' -> Infinity Overflow Inexact Rounded
intx080 integer '-56267E-10' -> '-0' Inexact Rounded
intx081 integer '-56267E-5' -> '-1' Inexact Rounded
--- 91,96 ----
intx069 integer '56267E+3' -> '56267000'
intx070 integer '56267E+4' -> '562670000'
! intx071 integer '56267E+5' -> NaN Invalid_operation
! intx072 integer '56267E+6' -> NaN Invalid_operation
intx080 integer '-56267E-10' -> '-0' Inexact Rounded
intx081 integer '-56267E-5' -> '-1' Inexact Rounded
***************
*** 101,110 ****
intx089 integer '-56267E+3' -> '-56267000'
intx090 integer '-56267E+4' -> '-562670000'
! intx091 integer '-56267E+5' -> -Infinity Overflow Inexact Rounded
! intx092 integer '-56267E+6' -> -Infinity Overflow Inexact Rounded
-- specials and zeros
! intx120 integer 'Inf' -> 'Infinity'
! intx121 integer '-Inf' -> '-Infinity'
intx122 integer NaN -> NaN
intx123 integer sNaN -> NaN Invalid_operation
--- 103,112 ----
intx089 integer '-56267E+3' -> '-56267000'
intx090 integer '-56267E+4' -> '-562670000'
! intx091 integer '-56267E+5' -> NaN Invalid_operation
! intx092 integer '-56267E+6' -> NaN Invalid_operation
-- specials and zeros
! intx120 integer 'Inf' -> NaN Invalid_operation
! intx121 integer '-Inf' -> NaN Invalid_operation
intx122 integer NaN -> NaN
intx123 integer sNaN -> NaN Invalid_operation
Index: max.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/max.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** max.decTest 2 May 2003 23:07:35 -0000 1.1
--- max.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- we assume that base comparison is tested in compare.decTest, so
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- we assume that base comparison is tested in compare.decTest, so
Index: min.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/min.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** min.decTest 2 May 2003 23:07:35 -0000 1.1
--- min.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- we assume that base comparison is tested in compare.decTest, so
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- we assume that base comparison is tested in compare.decTest, so
Index: minus.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/minus.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** minus.decTest 2 May 2003 23:07:35 -0000 1.1
--- minus.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This set of tests primarily tests the existence of the operator.
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This set of tests primarily tests the existence of the operator.
Index: multiply.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/multiply.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** multiply.decTest 2 May 2003 23:07:35 -0000 1.1
--- multiply.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: normalize.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/normalize.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** normalize.decTest 2 May 2003 23:07:35 -0000 1.1
--- normalize.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: plus.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/plus.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** plus.decTest 2 May 2003 23:07:35 -0000 1.1
--- plus.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This set of tests primarily tests the existence of the operator.
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This set of tests primarily tests the existence of the operator.
Index: power.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/power.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** power.decTest 2 May 2003 23:07:35 -0000 1.1
--- power.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- This set of testcases tests raising numbers to an integer power only.
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- This set of testcases tests raising numbers to an integer power only.
***************
*** 252,255 ****
--- 252,273 ----
precision: 999999995
powx254 power 2 12 -> 4096
+
+ -- zeros
+ maxexponent: +96
+ minexponent: -95
+ precision: 7
+ powx260 power 0E-34 3 -> 0E-101 Clamped
+ powx261 power 0E-33 3 -> 0E-99
+ powx262 power 0E-32 3 -> 0E-96
+ powx263 power 0E-30 3 -> 0E-90
+ powx264 power 0E-10 3 -> 0E-30
+ powx265 power 0E-1 3 -> 0.000
+ powx266 power 0E+0 3 -> 0
+ powx267 power 0 3 -> 0
+ powx268 power 0E+1 3 -> 0E+3
+ powx269 power 0E+10 3 -> 0E+30
+ powx270 power 0E+30 3 -> 0E+90
+ powx271 power 0E+32 3 -> 0E+96
+ powx272 power 0E+33 3 -> 0E+96 Clamped
-- overflow and underflow tests
Index: randomBound32.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/randomBound32.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** randomBound32.decTest 2 May 2003 23:07:35 -0000 1.1
--- randomBound32.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- These testcases test calculations at precisions 31, 32, and 33, to
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- These testcases test calculations at precisions 31, 32, and 33, to
Index: randoms.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/randoms.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** randoms.decTest 2 May 2003 23:07:35 -0000 1.1
--- randoms.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: remainder.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/remainder.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** remainder.decTest 2 May 2003 23:07:35 -0000 1.1
--- remainder.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: remainderNear.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/remainderNear.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** remainderNear.decTest 2 May 2003 23:07:35 -0000 1.1
--- remainderNear.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: rescale.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/rescale.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rescale.decTest 2 May 2003 23:07:35 -0000 1.1
--- rescale.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
***************
*** 79,84 ****
resx066 rescale -0.1 0 -> -0 Inexact Rounded
resx067 rescale -0 5 -> -0E+5
! resx068 rescale +35236450.6 -2 -> Infinity Overflow Inexact Rounded
! resx069 rescale -35236450.6 -2 -> -Infinity Overflow Inexact Rounded
resx070 rescale 217 -1 -> 217.0
resx071 rescale 217 0 -> 217
--- 79,84 ----
resx066 rescale -0.1 0 -> -0 Inexact Rounded
resx067 rescale -0 5 -> -0E+5
! resx068 rescale +35236450.6 -2 -> NaN Invalid_operation
! resx069 rescale -35236450.6 -2 -> NaN Invalid_operation
resx070 rescale 217 -1 -> 217.0
resx071 rescale 217 0 -> 217
***************
*** 133,137 ****
resx141 rescale +1 -2 -> 1.00
resx142 rescale +10 -2 -> 10.00
! resx143 rescale 1E+10 -2 -> Infinity Overflow Inexact Rounded
resx144 rescale 1E-10 -2 -> 0.00 Inexact Rounded
resx145 rescale 1E-3 -2 -> 0.00 Inexact Rounded
--- 133,137 ----
resx141 rescale +1 -2 -> 1.00
resx142 rescale +10 -2 -> 10.00
! resx143 rescale 1E+10 -2 -> NaN Invalid_operation
resx144 rescale 1E-10 -2 -> 0.00 Inexact Rounded
resx145 rescale 1E-3 -2 -> 0.00 Inexact Rounded
***************
*** 188,192 ****
resx251 rescale 1E+9 +1 -> 1.00000000E+9 -- underneath this is E+1
-- next one tries to add 9 zeros
! resx252 rescale 1E+10 +1 -> Infinity Overflow Inexact Rounded
resx253 rescale 1E-10 +1 -> 0E+1 Inexact Rounded
resx254 rescale 1E-2 +1 -> 0E+1 Inexact Rounded
--- 188,192 ----
resx251 rescale 1E+9 +1 -> 1.00000000E+9 -- underneath this is E+1
-- next one tries to add 9 zeros
! resx252 rescale 1E+10 +1 -> NaN Invalid_operation
resx253 rescale 1E-10 +1 -> 0E+1 Inexact Rounded
resx254 rescale 1E-2 +1 -> 0E+1 Inexact Rounded
***************
*** 310,321 ****
resx380 rescale 352364.506 -2 -> 352364.51 Inexact Rounded
resx381 rescale 3523645.06 -2 -> 3523645.06
! resx382 rescale 35236450.6 -2 -> Infinity Overflow Inexact Rounded
! resx383 rescale 352364506 -2 -> Infinity Overflow Inexact Rounded
resx384 rescale -352364.506 -2 -> -352364.51 Inexact Rounded
resx385 rescale -3523645.06 -2 -> -3523645.06
! resx386 rescale -35236450.6 -2 -> -Infinity Overflow Inexact Rounded
! resx387 rescale -352364506 -2 -> -Infinity Overflow Inexact Rounded
-- some 9999 round-up cases
resx400 rescale 9.999 -5 -> 9.99900
resx401 rescale 9.999 -4 -> 9.9990
--- 310,337 ----
resx380 rescale 352364.506 -2 -> 352364.51 Inexact Rounded
resx381 rescale 3523645.06 -2 -> 3523645.06
! resx382 rescale 35236450.6 -2 -> NaN Invalid_operation
! resx383 rescale 352364506 -2 -> NaN Invalid_operation
resx384 rescale -352364.506 -2 -> -352364.51 Inexact Rounded
resx385 rescale -3523645.06 -2 -> -3523645.06
! resx386 rescale -35236450.6 -2 -> NaN Invalid_operation
! resx387 rescale -352364506 -2 -> NaN Invalid_operation
!
! rounding: down
! resx389 rescale 35236450.6 -2 -> NaN Invalid_operation
! -- ? should that one instead have been:
! -- resx389 rescale 35236450.6 -2 -> NaN Invalid_operation
! rounding: half_up
!
! -- and a few more from e-mail discussions
! precision: 7
! resx391 rescale 12.34567 -3 -> 12.346 Inexact Rounded
! resx392 rescale 123.4567 -3 -> 123.457 Inexact Rounded
! resx393 rescale 1234.567 -3 -> 1234.567
! resx394 rescale 12345.67 -3 -> NaN Invalid_operation
! resx395 rescale 123456.7 -3 -> NaN Invalid_operation
! resx396 rescale 1234567. -3 -> NaN Invalid_operation
-- some 9999 round-up cases
+ precision: 9
resx400 rescale 9.999 -5 -> 9.99900
resx401 rescale 9.999 -4 -> 9.9990
***************
*** 360,364 ****
precision: 8
! resx449 rescale 9.999E-15 -23 -> Infinity Inexact Rounded Overflow
resx450 rescale 9.999E-15 -22 -> 9.9990000E-15
resx451 rescale 9.999E-15 -21 -> 9.999000E-15
--- 376,380 ----
precision: 8
! resx449 rescale 9.999E-15 -23 -> NaN Invalid_operation
resx450 rescale 9.999E-15 -22 -> 9.9990000E-15
resx451 rescale 9.999E-15 -21 -> 9.999000E-15
***************
*** 441,448 ****
resx526 rescale 123.456 12345678903 -> NaN Invalid_operation
-- next four are "won't fit" overflows
! resx527 rescale 1.234 -999999E+3 -> Infinity Overflow Inexact Rounded
! resx528 rescale 123.456 -999999E+3 -> Infinity Overflow Inexact Rounded
! resx529 rescale 1.234 -999999999 -> Infinity Overflow Inexact Rounded
! resx530 rescale 123.456 -999999999 -> Infinity Overflow Inexact Rounded
resx531 rescale 123.456 -1000000014 -> NaN Invalid_operation
resx532 rescale 123.456 -12345678903 -> NaN Invalid_operation
--- 457,464 ----
resx526 rescale 123.456 12345678903 -> NaN Invalid_operation
-- next four are "won't fit" overflows
! resx527 rescale 1.234 -999999E+3 -> NaN Invalid_operation
! resx528 rescale 123.456 -999999E+3 -> NaN Invalid_operation
! resx529 rescale 1.234 -999999999 -> NaN Invalid_operation
! resx530 rescale 123.456 -999999999 -> NaN Invalid_operation
resx531 rescale 123.456 -1000000014 -> NaN Invalid_operation
resx532 rescale 123.456 -12345678903 -> NaN Invalid_operation
***************
*** 459,464 ****
resx545 rescale 0 -999 -> 0E-999
-- next two are "won't fit" overflows
! resx546 rescale 1.234 -999 -> Infinity Overflow Inexact Rounded
! resx547 rescale 1.234 -1000 -> Infinity Overflow Inexact Rounded
resx548 rescale 1.234 -5000 -> NaN Invalid_operation
-- [more below]
--- 475,480 ----
resx545 rescale 0 -999 -> 0E-999
-- next two are "won't fit" overflows
! resx546 rescale 1.234 -999 -> NaN Invalid_operation
! resx547 rescale 1.234 -1000 -> NaN Invalid_operation
resx548 rescale 1.234 -5000 -> NaN Invalid_operation
-- [more below]
***************
*** 483,491 ****
-- Specials
resx580 rescale Inf -Inf -> NaN Invalid_operation
! resx581 rescale Inf -1000 -> Infinity
! resx582 rescale Inf -1 -> Infinity
! resx583 rescale Inf 0 -> Infinity
! resx584 rescale Inf 1 -> Infinity
! resx585 rescale Inf 1000 -> Infinity
resx586 rescale Inf Inf -> NaN Invalid_operation
resx587 rescale -1000 Inf -> NaN Invalid_operation
--- 499,507 ----
-- Specials
resx580 rescale Inf -Inf -> NaN Invalid_operation
! resx581 rescale Inf -1000 -> NaN Invalid_operation
! resx582 rescale Inf -1 -> NaN Invalid_operation
! resx583 rescale Inf 0 -> NaN Invalid_operation
! resx584 rescale Inf 1 -> NaN Invalid_operation
! resx585 rescale Inf 1000 -> NaN Invalid_operation
resx586 rescale Inf Inf -> NaN Invalid_operation
resx587 rescale -1000 Inf -> NaN Invalid_operation
***************
*** 496,508 ****
resx592 rescale 1000 Inf -> NaN Invalid_operation
resx593 rescale Inf Inf -> NaN Invalid_operation
! resx594 rescale Inf -0 -> Infinity
resx595 rescale -0 Inf -> NaN Invalid_operation
resx600 rescale -Inf -Inf -> NaN Invalid_operation
! resx601 rescale -Inf -1000 -> -Infinity
! resx602 rescale -Inf -1 -> -Infinity
! resx603 rescale -Inf 0 -> -Infinity
! resx604 rescale -Inf 1 -> -Infinity
! resx605 rescale -Inf 1000 -> -Infinity
resx606 rescale -Inf Inf -> NaN Invalid_operation
resx607 rescale -1000 Inf -> NaN Invalid_operation
--- 512,524 ----
resx592 rescale 1000 Inf -> NaN Invalid_operation
resx593 rescale Inf Inf -> NaN Invalid_operation
! resx594 rescale Inf -0 -> NaN Invalid_operation
resx595 rescale -0 Inf -> NaN Invalid_operation
resx600 rescale -Inf -Inf -> NaN Invalid_operation
! resx601 rescale -Inf -1000 -> NaN Invalid_operation
! resx602 rescale -Inf -1 -> NaN Invalid_operation
! resx603 rescale -Inf 0 -> NaN Invalid_operation
! resx604 rescale -Inf 1 -> NaN Invalid_operation
! resx605 rescale -Inf 1000 -> NaN Invalid_operation
resx606 rescale -Inf Inf -> NaN Invalid_operation
resx607 rescale -1000 Inf -> NaN Invalid_operation
***************
*** 513,517 ****
resx612 rescale 1000 -Inf -> NaN Invalid_operation
resx613 rescale Inf -Inf -> NaN Invalid_operation
! resx614 rescale -Inf -0 -> -Infinity
resx615 rescale -0 -Inf -> NaN Invalid_operation
--- 529,533 ----
resx612 rescale 1000 -Inf -> NaN Invalid_operation
resx613 rescale Inf -Inf -> NaN Invalid_operation
! resx614 rescale -Inf -0 -> NaN Invalid_operation
resx615 rescale -0 -Inf -> NaN Invalid_operation
***************
*** 524,528 ****
resx627 rescale NaN Inf -> NaN Invalid_operation
resx628 rescale NaN NaN -> NaN
! resx629 rescale -Inf NaN -> NaN
resx630 rescale -1000 NaN -> NaN
resx631 rescale -1 NaN -> NaN
--- 540,544 ----
resx627 rescale NaN Inf -> NaN Invalid_operation
resx628 rescale NaN NaN -> NaN
! resx629 rescale -Inf NaN -> NaN Invalid_operation
resx630 rescale -1000 NaN -> NaN
resx631 rescale -1 NaN -> NaN
***************
*** 530,534 ****
resx633 rescale 1 NaN -> NaN
resx634 rescale 1000 NaN -> NaN
! resx635 rescale Inf NaN -> NaN
resx636 rescale NaN -0 -> NaN
resx637 rescale -0 NaN -> NaN
--- 546,550 ----
resx633 rescale 1 NaN -> NaN
resx634 rescale 1000 NaN -> NaN
! resx635 rescale Inf NaN -> NaN Invalid_operation
resx636 rescale NaN -0 -> NaN
resx637 rescale -0 NaN -> NaN
Index: rounding.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/rounding.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rounding.decTest 2 May 2003 23:07:35 -0000 1.1
--- rounding.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- These tests require that implementations take account of residues in
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- These tests require that implementations take account of residues in
Index: squareroot.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/squareroot.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** squareroot.decTest 2 May 2003 23:07:35 -0000 1.1
--- squareroot.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
[...1882 lines suppressed...]
sqtx803 squareroot 1E-18 -> 1E-9
precision: 11 -- Etiny=-19
! sqtx804 squareroot 1E-19 -> 3.162277660E-10 Underflow Subnormal Inexact Rounded
! sqtx805 squareroot 10E-19 -> 1E-9
precision: 12 -- Etiny=-20
sqtx806 squareroot 10E-20 -> 3.1622776602E-10 Underflow Subnormal Inexact Rounded
***************
*** 2912,2916 ****
precision: 13 -- Etiny=-21
sqtx808 squareroot 1E-21 -> 3.1622776602E-11 Underflow Subnormal Inexact Rounded
! sqtx809 squareroot 10E-21 -> 1E-10 Subnormal Rounded
precision: 14 -- Etiny=-22
sqtx810 squareroot 1E-21 -> 3.16227766017E-11 Underflow Subnormal Inexact Rounded
--- 2924,2928 ----
precision: 13 -- Etiny=-21
sqtx808 squareroot 1E-21 -> 3.1622776602E-11 Underflow Subnormal Inexact Rounded
! sqtx809 squareroot 10E-21 -> 1E-10 Subnormal
precision: 14 -- Etiny=-22
sqtx810 squareroot 1E-21 -> 3.16227766017E-11 Underflow Subnormal Inexact Rounded
Index: subtract.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/subtract.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** subtract.decTest 2 May 2003 23:07:35 -0000 1.1
--- subtract.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1
Index: testall.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/testall.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** testall.decTest 2 May 2003 23:07:35 -0000 1.1
--- testall.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
-- core tests (using Extended: 1) --------------------------------------
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
-- core tests (using Extended: 1) --------------------------------------
Index: trim.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/trim.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** trim.decTest 2 May 2003 23:07:35 -0000 1.1
--- trim.decTest 27 May 2003 22:46:40 -0000 1.2
***************
*** 18,22 ****
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.21
extended: 1
--- 18,22 ----
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
! version: 2.23
extended: 1