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 #3449: Update decimal module to use most recent specification
  (v. 1.68) and tests (v. 2.58) from IBM.
........
This commit is contained in:
Benjamin Peterson 2008-07-31 16:32:12 +00:00
parent d63137159b
commit f17ff4e1d6
142 changed files with 470 additions and 321 deletions

View file

@ -1,6 +1,6 @@
------------------------------------------------------------------------
-- ddBase.decTest -- base decDouble <--> string conversions --
-- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.57
version: 2.58
-- This file tests base conversions from string to a decimal number
-- and back to a string (in Scientific form)
@ -1078,6 +1078,14 @@ ddbas1041 toSci 1.1111111111152444E-384 -> 1.11111111111524E-384 Inexact Ro
ddbas1042 toSci 1.1111111111152445E-384 -> 1.11111111111524E-384 Inexact Rounded Subnormal Underflow
ddbas1043 toSci 1.1111111111152446E-384 -> 1.11111111111524E-384 Inexact Rounded Subnormal Underflow
-- clamped large normals
ddbas1070 toSci 1E+369 -> 1E+369
ddbas1071 toSci 1E+370 -> 1.0E+370 Clamped
ddbas1072 toSci 1E+378 -> 1.000000000E+378 Clamped
ddbas1073 toSci 1E+384 -> 1.000000000000000E+384 Clamped
ddbas1074 toSci 1E+385 -> Infinity Overflow Inexact Rounded
-- clamped zeros [see also clamp.decTest]
ddbas1075 toSci 0e+10000 -> 0E+369 Clamped
ddbas1076 toSci 0e-10000 -> 0E-398 Clamped