[Python-checkins] python/nondist/sandbox/decimal/tests tointegral.decTest, NONE, 1.1 abs.decTest, 1.3, 1.4 add.decTest, 1.3, 1.4 base.decTest, 1.3, 1.4 clamp.decTest, 1.3, 1.4 compare.decTest, 1.3, 1.4 decimal64.decTest, 1.3, 1.4 divide.decTest, 1.3, 1.4 divideint.decTest, 1.3, 1.4 inexact.decTest, 1.3, 1.4 max.decTest, 1.3, 1.4 min.decTest, 1.3, 1.4 minus.decTest, 1.3, 1.4 multiply.decTest, 1.3, 1.4 normalize.decTest, 1.3, 1.4 plus.decTest, 1.3, 1.4 power.decTest, 1.3, 1.4 quantize.decTest, 1.1, 1.2 randomBound32.decTest, 1.3, 1.4 randoms.decTest, 1.3, 1.4 remainder.decTest, 1.3, 1.4 remainderNear.decTest, 1.3, 1.4 rescale.decTest, 1.3, 1.4 rounding.decTest, 1.3, 1.4 squareroot.decTest, 1.3, 1.4 subtract.decTest, 1.3, 1.4 testall.decTest, 1.3, 1.4 trim.decTest, 1.3, 1.4

eprice at users.sourceforge.net eprice at users.sourceforge.net
Tue Aug 12 17:05:33 EDT 2003


Update of /cvsroot/python/python/nondist/sandbox/decimal/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv7408

Modified Files:
	abs.decTest add.decTest base.decTest clamp.decTest 
	compare.decTest decimal64.decTest divide.decTest 
	divideint.decTest inexact.decTest max.decTest min.decTest 
	minus.decTest multiply.decTest normalize.decTest plus.decTest 
	power.decTest quantize.decTest randomBound32.decTest 
	randoms.decTest remainder.decTest remainderNear.decTest 
	rescale.decTest rounding.decTest squareroot.decTest 
	subtract.decTest testall.decTest trim.decTest 
Added Files:
	tointegral.decTest 
Log Message:
Updated tests, added test



--- NEW FILE: tointegral.decTest ---
------------------------------------------------------------------------
-- tointegral.decTest -- round decimal to integral value              --
-- Copyright (c) IBM Corporation, 2001, 2003.  All rights reserved.   --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases"     --
-- at http://www2.hursley.ibm.com/decimal for the description of      --
-- these testcases.                                                   --
--                                                                    --
-- These testcases are experimental ('beta' versions), and they       --
-- may contain errors.  They are offered on an as-is basis.  In       --
-- particular, achieving the same results as the tests here is not    --
-- a guarantee that an implementation complies with any Standard      --
-- or specification.  The tests are not exhaustive.                   --
--                                                                    --
-- Please send comments, suggestions, and corrections to the author:  --
--   Mike Cowlishaw, IBM Fellow                                       --
--   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
--   mfc at uk.ibm.com                                                   --
------------------------------------------------------------------------
version: 2.28

-- This set of tests tests the extended specification 'round-to-integral
-- value' operation (from IEEE 854, later modified in 754r).
-- All non-zero results are defined as being those from either copy or
-- quantize, so those are assumed to have been tested.
-- Note that 754r requires that  not be set, and we similarly
-- assume Rounded is not set.

extended:    1
precision:   9
rounding:    half_up
maxExponent: 999
minExponent: -999

intx001 tointegral      0     ->  0
intx002 tointegral      0.0   ->  0
intx003 tointegral      0.1   ->  0
intx004 tointegral      0.2   ->  0
intx005 tointegral      0.3   ->  0
intx006 tointegral      0.4   ->  0
intx007 tointegral      0.5   ->  1
intx008 tointegral      0.6   ->  1
intx009 tointegral      0.7   ->  1
intx010 tointegral      0.8   ->  1
intx011 tointegral      0.9   ->  1
intx012 tointegral      1     ->  1
intx013 tointegral      1.0   ->  1
intx014 tointegral      1.1   ->  1
intx015 tointegral      1.2   ->  1
intx016 tointegral      1.3   ->  1
intx017 tointegral      1.4   ->  1
intx018 tointegral      1.5   ->  2
intx019 tointegral      1.6   ->  2
intx020 tointegral      1.7   ->  2
intx021 tointegral      1.8   ->  2
intx022 tointegral      1.9   ->  2
-- negatives
intx031 tointegral     -0     -> -0
intx032 tointegral     -0.0   -> -0
intx033 tointegral     -0.1   -> -0
intx034 tointegral     -0.2   -> -0
intx035 tointegral     -0.3   -> -0
intx036 tointegral     -0.4   -> -0
intx037 tointegral     -0.5   -> -1
intx038 tointegral     -0.6   -> -1
intx039 tointegral     -0.7   -> -1
intx040 tointegral     -0.8   -> -1
intx041 tointegral     -0.9   -> -1
intx042 tointegral     -1     -> -1
intx043 tointegral     -1.0   -> -1
intx044 tointegral     -1.1   -> -1
intx045 tointegral     -1.2   -> -1
intx046 tointegral     -1.3   -> -1
intx047 tointegral     -1.4   -> -1
intx048 tointegral     -1.5   -> -2
intx049 tointegral     -1.6   -> -2
intx050 tointegral     -1.7   -> -2
intx051 tointegral     -1.8   -> -2
intx052 tointegral     -1.9   -> -2
-- next two would be NaN using quantize(x, 0)
intx053 tointegral    10E+30  -> 1.0E+31
intx054 tointegral   -10E+30  -> -1.0E+31

-- numbers around precision
precision: 9
intx060 tointegral '56267E-10'   -> '0'
intx061 tointegral '56267E-5'    -> '1'
intx062 tointegral '56267E-2'    -> '563'
intx063 tointegral '56267E-1'    -> '5627'
intx065 tointegral '56267E-0'    -> '56267'
intx066 tointegral '56267E+0'    -> '56267'
intx067 tointegral '56267E+1'    -> '5.6267E+5'
intx068 tointegral '56267E+2'    -> '5.6267E+6'
intx069 tointegral '56267E+3'    -> '5.6267E+7'
intx070 tointegral '56267E+4'    -> '5.6267E+8'
intx071 tointegral '56267E+5'    -> '5.6267E+9'
intx072 tointegral '56267E+6'    -> '5.6267E+10'
intx073 tointegral '1.23E+96'    -> '1.23E+96'
intx074 tointegral '1.23E+384'   -> '1.23E+384'
intx075 tointegral '1.23E+999'   -> '1.23E+999'

intx080 tointegral '-56267E-10'  -> '-0'
intx081 tointegral '-56267E-5'   -> '-1'
intx082 tointegral '-56267E-2'   -> '-563'
intx083 tointegral '-56267E-1'   -> '-5627'
intx085 tointegral '-56267E-0'   -> '-56267'
intx086 tointegral '-56267E+0'   -> '-56267'
intx087 tointegral '-56267E+1'   -> '-5.6267E+5'
intx088 tointegral '-56267E+2'   -> '-5.6267E+6'
intx089 tointegral '-56267E+3'   -> '-5.6267E+7'
intx090 tointegral '-56267E+4'   -> '-5.6267E+8'
intx091 tointegral '-56267E+5'   -> '-5.6267E+9'
intx092 tointegral '-56267E+6'   -> '-5.6267E+10'
intx093 tointegral '-1.23E+96'   -> '-1.23E+96'
intx094 tointegral '-1.23E+384'  -> '-1.23E+384'
intx095 tointegral '-1.23E+999'  -> '-1.23E+999'

-- specials and zeros
intx120 tointegral 'Inf'       ->  Infinity
intx121 tointegral '-Inf'      -> -Infinity
intx122 tointegral   NaN       ->  NaN
intx123 tointegral  sNaN       ->  NaN  Invalid_operation
intx124 tointegral     0       ->  0
intx125 tointegral    -0       -> -0
intx126 tointegral     0.000   ->  0
intx127 tointegral     0.00    ->  0
intx128 tointegral     0.0     ->  0
intx129 tointegral     0       ->  0
intx130 tointegral     0E-3    ->  0
intx131 tointegral     0E-2    ->  0
intx132 tointegral     0E-1    ->  0
intx133 tointegral     0E-0    ->  0
intx134 tointegral     0E+1    ->  0E+1
intx135 tointegral     0E+2    ->  0E+2
intx136 tointegral     0E+3    ->  0E+3
intx137 tointegral     0E+4    ->  0E+4
intx138 tointegral     0E+5    ->  0E+5
intx139 tointegral    -0.000   -> -0
intx140 tointegral    -0.00    -> -0
intx141 tointegral    -0.0     -> -0
intx142 tointegral    -0       -> -0
intx143 tointegral    -0E-3    -> -0
intx144 tointegral    -0E-2    -> -0
intx145 tointegral    -0E-1    -> -0
intx146 tointegral    -0E-0    -> -0
intx147 tointegral    -0E+1    -> -0E+1
intx148 tointegral    -0E+2    -> -0E+2
intx149 tointegral    -0E+3    -> -0E+3
intx150 tointegral    -0E+4    -> -0E+4
intx151 tointegral    -0E+5    -> -0E+5

-- examples
rounding:    half_up
precision:   9
intx200 tointegral     2.1    -> 2
intx201 tointegral   100      -> 100
intx202 tointegral   100.0    -> 100
intx203 tointegral   101.5    -> 102
intx204 tointegral  -101.5    -> -102
intx205 tointegral   10E+5    -> 1.0E+6
intx206 tointegral  7.89E+77  -> 7.89E+77
intx207 tointegral   -Inf     -> -Infinity


Index: abs.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/abs.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** abs.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- abs.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- This set of tests primarily tests the existence of the operator.
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** add.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- add.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  precision:   9
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  precision:   9
***************
*** 305,310 ****
  addx269 add '123456789' 1.1           -> '123456790' Inexact Rounded
  
- rounding: half_up
- 
  -- input preparation tests (operands should not be rounded)
  precision: 3
--- 305,308 ----
***************
*** 400,403 ****
--- 398,418 ----
  addx363  add 10000E+1 10000E-50  -> 100000.0  Rounded Inexact
  
+ -- a curiosity from JSR 13 testing
+ rounding:    half_down
+ precision:   10
+ addx370 add 99999999 81512 -> 100081511
+ precision:      6
+ addx371 add 99999999 81512 -> 1.00082E+8 Rounded Inexact
+ rounding:    half_up
+ precision:   10
+ addx372 add 99999999 81512 -> 100081511
+ precision:      6
+ addx373 add 99999999 81512 -> 1.00082E+8 Rounded Inexact
+ rounding:    half_even
+ precision:   10
+ addx374 add 99999999 81512 -> 100081511
+ precision:      6
+ addx375 add 99999999 81512 -> 1.00082E+8 Rounded Inexact
+ 
  -- ulp replacement tests
  precision: 9
***************
*** 547,550 ****
--- 562,573 ----
  addx552 add 0 1234567896  -> 1234567896
  
+ -- verify a query
+ precision:    16
+ maxExponent: +394
+ minExponent: -393
+ rounding:     down
+ addx561 add 1e-398 9.000000000000000E+384 -> 9.000000000000000E+384 Inexact Rounded
+ addx562 add      0 9.000000000000000E+384 -> 9.000000000000000E+384 Rounded
+ 
  -- some more residue effects with extreme rounding
  precision:   9
***************
*** 972,975 ****
--- 995,1058 ----
  addx1025 add       1.00001E-80  1.52444E-80 -> 2.524E-80 Inexact Rounded Subnormal Underflow
  addx1026 add       1.00001E-80  1.52445E-80 -> 2.524E-80 Inexact Rounded Subnormal Underflow
+ 
+ -- And for round down full and subnormal results
+ precision:    16
+ maxExponent: +394
+ minExponent: -393
+ rounding:     down
+ 
+ addx1100 add 1e+2 -1e-393    -> 99.99999999999999 Rounded Inexact
+ addx1101 add 1e+1 -1e-393    -> 9.999999999999999  Rounded Inexact
+ addx1103 add   +1 -1e-393    -> 0.9999999999999999  Rounded Inexact
+ addx1104 add 1e-1 -1e-393    -> 0.09999999999999999  Rounded Inexact
+ addx1105 add 1e-2 -1e-393    -> 0.009999999999999999  Rounded Inexact
+ addx1106 add 1e-3 -1e-393    -> 0.0009999999999999999  Rounded Inexact
+ addx1107 add 1e-4 -1e-393    -> 0.00009999999999999999  Rounded Inexact
+ addx1108 add 1e-5 -1e-393    -> 0.000009999999999999999  Rounded Inexact
+ addx1109 add 1e-6 -1e-393    -> 9.999999999999999E-7  Rounded Inexact
+ 
+ rounding:     ceiling
+ addx1110 add -1e+2 +1e-393   -> -99.99999999999999 Rounded Inexact
+ addx1111 add -1e+1 +1e-393   -> -9.999999999999999  Rounded Inexact
+ addx1113 add    -1 +1e-393   -> -0.9999999999999999  Rounded Inexact
+ addx1114 add -1e-1 +1e-393   -> -0.09999999999999999  Rounded Inexact
+ addx1115 add -1e-2 +1e-393   -> -0.009999999999999999  Rounded Inexact
+ addx1116 add -1e-3 +1e-393   -> -0.0009999999999999999  Rounded Inexact
+ addx1117 add -1e-4 +1e-393   -> -0.00009999999999999999  Rounded Inexact
+ addx1118 add -1e-5 +1e-393   -> -0.000009999999999999999  Rounded Inexact
+ addx1119 add -1e-6 +1e-393   -> -9.999999999999999E-7  Rounded Inexact
+ 
+ rounding:     down
+ precision:    7
+ maxExponent: +96
+ minExponent: -95
+ addx1130 add   1            -1e-200  -> 0.9999999  Rounded Inexact
+ -- subnormal boundary
+ addx1131 add   1.000000E-94  -1e-200  ->  9.999999E-95  Rounded Inexact
+ addx1132 add   1.000001E-95  -1e-200  ->  1.000000E-95  Rounded Inexact
+ addx1133 add   1.000000E-95  -1e-200  ->  9.99999E-96  Rounded Inexact Subnormal Underflow
+ addx1134 add   0.999999E-95  -1e-200  ->  9.99998E-96  Rounded Inexact Subnormal Underflow
+ addx1135 add   0.001000E-95  -1e-200  ->  9.99E-99  Rounded Inexact Subnormal Underflow
+ addx1136 add   0.000999E-95  -1e-200  ->  9.98E-99  Rounded Inexact Subnormal Underflow
+ addx1137 add   1.000000E-95  -1e-101  ->  9.99999E-96  Subnormal
+ addx1138 add      10000E-101 -1e-200  ->  9.999E-98  Subnormal Inexact Rounded Underflow
+ addx1139 add       1000E-101 -1e-200  ->  9.99E-99   Subnormal Inexact Rounded Underflow
+ addx1140 add        100E-101 -1e-200  ->  9.9E-100   Subnormal Inexact Rounded Underflow
+ addx1141 add         10E-101 -1e-200  ->  9E-101     Subnormal Inexact Rounded Underflow
+ addx1142 add          1E-101 -1e-200  ->  0E-101     Subnormal Inexact Rounded Underflow
+ addx1143 add          0E-101 -1e-200  -> -0E-101     Subnormal Inexact Rounded Underflow
+ addx1144 add          1E-102 -1e-200  ->  0E-101     Subnormal Inexact Rounded Underflow
+ 
+ addx1151 add      10000E-102 -1e-200  ->  9.99E-99  Subnormal Inexact Rounded Underflow
+ addx1152 add       1000E-102 -1e-200  ->  9.9E-100  Subnormal Inexact Rounded Underflow
+ addx1153 add        100E-102 -1e-200  ->  9E-101   Subnormal Inexact Rounded Underflow
+ addx1154 add         10E-102 -1e-200  ->  0E-101     Subnormal Inexact Rounded Underflow
+ addx1155 add          1E-102 -1e-200  ->  0E-101     Subnormal Inexact Rounded Underflow
+ addx1156 add          0E-102 -1e-200  -> -0E-101     Subnormal Inexact Rounded Underflow
+ addx1157 add          1E-103 -1e-200  ->  0E-101     Subnormal Inexact Rounded Underflow
+ 
+ addx1160 add        100E-105 -1e-101  -> -0E-101 Subnormal Inexact Rounded Underflow
+ addx1161 add        100E-105 -1e-201  ->  0E-101 Subnormal Inexact Rounded Underflow
+ 
  
  -- Null tests

Index: base.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/base.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** base.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- base.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- This file tests base conversions from string to a decimal number
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** clamp.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- clamp.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- This set of tests uses the same limits as the 8-byte concrete
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** compare.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- compare.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- Note that we cannot assume add/subtract tests cover paths adequately,
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** decimal64.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- decimal64.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- This set of tests is for the eight-byte concrete representation.
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** divide.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- divide.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: divideint.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/divideint.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** divideint.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- divideint.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: inexact.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/inexact.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** inexact.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- inexact.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: max.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/max.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** max.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- max.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- we assume that base comparison is tested in compare.decTest, so
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** min.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- min.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- we assume that base comparison is tested in compare.decTest, so
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** minus.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- minus.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- This set of tests primarily tests the existence of the operator.
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** multiply.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- multiply.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: normalize.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/normalize.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** normalize.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- normalize.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: plus.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/plus.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** plus.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- plus.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- This set of tests primarily tests the existence of the operator.
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** power.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- power.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- This set of testcases tests raising numbers to an integer power only.
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- This set of testcases tests raising numbers to an integer power only.

Index: quantize.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/quantize.decTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** quantize.decTest	2 Jul 2003 23:51:16 -0000	1.1
--- quantize.decTest	12 Aug 2003 23:05:30 -0000	1.2
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- Most of the tests here assume a "regular pattern", where the
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- Most of the tests here assume a "regular pattern", where the

Index: randomBound32.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/randomBound32.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** randomBound32.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- randomBound32.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- These testcases test calculations at precisions 31, 32, and 33, to
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** randoms.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- randoms.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: remainder.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/remainder.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** remainder.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- remainder.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: remainderNear.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/remainderNear.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** remainderNear.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- remainderNear.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: rescale.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/rescale.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rescale.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- rescale.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- [obsolete]   Quantize.decTest has the improved version
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- [obsolete]   Quantize.decTest has the improved version

Index: rounding.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/rounding.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rounding.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- rounding.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- These tests require that implementations take account of residues in
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- 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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** squareroot.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- squareroot.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: subtract.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/subtract.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** subtract.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- subtract.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1

Index: testall.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/testall.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** testall.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- testall.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  -- core tests (using Extended: 1) --------------------------------------
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  -- core tests (using Extended: 1) --------------------------------------
***************
*** 29,33 ****
  dectest: divideint
  dectest: inexact
- dectest: integer
  dectest: max
  dectest: min
--- 29,32 ----
***************
*** 45,48 ****
--- 44,48 ----
  dectest: squareroot
  dectest: subtract
+ dectest: tointegral
  dectest: trim
  

Index: trim.decTest
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/tests/trim.decTest,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** trim.decTest	2 Jul 2003 23:51:16 -0000	1.3
--- trim.decTest	12 Aug 2003 23:05:30 -0000	1.4
***************
*** 18,22 ****
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.26
  
  extended:    1
--- 18,22 ----
  --   mfc at uk.ibm.com                                                   --
  ------------------------------------------------------------------------
! version: 2.28
  
  extended:    1





More information about the Python-checkins mailing list