summaryrefslogtreecommitdiffstats
path: root/Lib/test/decimaltestdata/ddBase.decTest
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-31 16:32:12 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-07-31 16:32:12 (GMT)
commitf17ff4e1d675bdf84676021d2c444e0ba002aa5c (patch)
treed43ab1f9097e876424034ad4d5bd0a1d2f3810de /Lib/test/decimaltestdata/ddBase.decTest
parentd63137159b0e0cdbaec5d4cb98b3de5940173ee3 (diff)
downloadcpython-f17ff4e1d675bdf84676021d2c444e0ba002aa5c.zip
cpython-f17ff4e1d675bdf84676021d2c444e0ba002aa5c.tar.gz
cpython-f17ff4e1d675bdf84676021d2c444e0ba002aa5c.tar.bz2
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. ........
Diffstat (limited to 'Lib/test/decimaltestdata/ddBase.decTest')
-rw-r--r--Lib/test/decimaltestdata/ddBase.decTest12
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/test/decimaltestdata/ddBase.decTest b/Lib/test/decimaltestdata/ddBase.decTest
index ddc8185..b064495 100644
--- a/Lib/test/decimaltestdata/ddBase.decTest
+++ b/Lib/test/decimaltestdata/ddBase.decTest
@@ -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