summaryrefslogtreecommitdiffstats
path: root/Lib/test/decimaltestdata/rescale.decTest
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/decimaltestdata/rescale.decTest')
-rw-r--r--Lib/test/decimaltestdata/rescale.decTest12
1 files changed, 9 insertions, 3 deletions
diff --git a/Lib/test/decimaltestdata/rescale.decTest b/Lib/test/decimaltestdata/rescale.decTest
index fd63f0f..30597db 100644
--- a/Lib/test/decimaltestdata/rescale.decTest
+++ b/Lib/test/decimaltestdata/rescale.decTest
@@ -1,6 +1,6 @@
------------------------------------------------------------------------
-- rescale.decTest -- decimal rescale operation --
--- Copyright (c) IBM Corporation, 1981, 2004. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2007. 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.39
+version: 2.56
-- [obsolete] Quantize.decTest has the improved version
@@ -379,7 +379,7 @@ resx445 rescale 0.000999 0 -> 0 Inexact Rounded
resx446 rescale 0.000999 1 -> 0E+1 Inexact Rounded
precision: 8
-resx449 rescale 9.999E-15 -23 -> NaN Invalid_operation
+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
resx452 rescale 9.999E-15 -20 -> 9.99900E-15
@@ -405,6 +405,12 @@ resx471 rescale 9.999E-15 -1 -> 0.0 Inexact Rounded
resx472 rescale 9.999E-15 0 -> 0 Inexact Rounded
resx473 rescale 9.999E-15 1 -> 0E+1 Inexact Rounded
+-- [additional tests for "don't fit" edge cases are in
+-- quantize.decTest. Here's a critical one.]
+precision: 3
+resx480 rescale 0.9999 -3 -> NaN Invalid_operation
+
+
-- long operand checks [rhs checks removed]
maxexponent: 999
minexponent: -999