X Tutup
Skip to content

Commit f17ff4e

Browse files
committed
Merged revisions 65257 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65257 | mark.dickinson | 2008-07-27 01:39:07 -0500 (Sun, 27 Jul 2008) | 3 lines Issue python#3449: Update decimal module to use most recent specification (v. 1.68) and tests (v. 2.58) from IBM. ........
1 parent d631371 commit f17ff4e

File tree

142 files changed

+471
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+471
-322
lines changed

Lib/test/decimaltestdata/abs.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- abs.decTest -- decimal absolute value --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
-- This set of tests primarily tests the existence of the operator.
2323
-- Additon, subtraction, rounding, and more overflows are tested

Lib/test/decimaltestdata/add.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------/cancell----------------------------------------------------------
22
-- add.decTest -- decimal addition --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
precision: 9
2323
rounding: half_up

Lib/test/decimaltestdata/and.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- and.decTest -- digitwise logical AND --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
extended: 1
2323
precision: 9

Lib/test/decimaltestdata/base.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- base.decTest -- base decimal <--> string conversions --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121
extended: 1
2222

2323
-- This file tests base conversions from string to a decimal number

Lib/test/decimaltestdata/clamp.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- clamp.decTest -- clamped exponent tests (format-independent) --
3-
-- Copyright (c) IBM Corporation, 2000, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 2000, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
-- This set of tests uses the same limits as the 8-byte concrete
2323
-- representation, but applies clamping without using format-specific

Lib/test/decimaltestdata/class.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- class.decTest -- Class operations --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
-- [New 2006.11.27]
2323

Lib/test/decimaltestdata/compare.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- compare.decTest -- decimal comparison that allows quiet NaNs --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
-- Note that we cannot assume add/subtract tests cover paths adequately,
2323
-- here, because the code might be quite different (comparison cannot

Lib/test/decimaltestdata/comparetotal.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- comparetotal.decTest -- decimal comparison using total ordering --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
-- Note that we cannot assume add/subtract tests cover paths adequately,
2323
-- here, because the code might be quite different (comparison cannot

Lib/test/decimaltestdata/comparetotmag.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- comparetotmag.decTest -- decimal comparison, abs. total ordering --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
-- Note that it cannot be assumed that add/subtract tests cover paths
2323
-- for this operation adequately, here, because the code might be

Lib/test/decimaltestdata/copy.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
------------------------------------------------------------------------
22
-- copy.decTest -- quiet copy --
3-
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
3+
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
44
------------------------------------------------------------------------
55
-- Please see the document "General Decimal Arithmetic Testcases" --
66
-- at http://www2.hursley.ibm.com/decimal for the description of --
@@ -17,7 +17,7 @@
1717
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
1818
-- mfc@uk.ibm.com --
1919
------------------------------------------------------------------------
20-
version: 2.57
20+
version: 2.58
2121

2222
extended: 1
2323
precision: 9

0 commit comments

Comments
 (0)
X Tutup