summaryrefslogtreecommitdiff
path: root/Lib/test/decimaltestdata/samequantum.decTest
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/decimaltestdata/samequantum.decTest')
-rw-r--r--Lib/test/decimaltestdata/samequantum.decTest42
1 files changed, 39 insertions, 3 deletions
diff --git a/Lib/test/decimaltestdata/samequantum.decTest b/Lib/test/decimaltestdata/samequantum.decTest
index bdea000802..0b1efff24c 100644
--- a/Lib/test/decimaltestdata/samequantum.decTest
+++ b/Lib/test/decimaltestdata/samequantum.decTest
@@ -1,6 +1,6 @@
------------------------------------------------------------------------
-- samequantum.decTest -- check quantums match --
--- Copyright (c) IBM Corporation, 2001, 2003. All rights reserved. --
+-- Copyright (c) IBM Corporation, 2001, 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
extended: 1
precision: 9
@@ -64,8 +64,44 @@ samq047 samequantum -0E-17 0.0E-17 -> 0
samq048 samequantum -0E-17 -0.0E-16 -> 1
samq049 samequantum -0E-17 -0.0E-17 -> 0
--- specials & combinations
+-- Nmax, Nmin, Ntiny
+samq051 samequantum 9.99999999E+999 9.99999999E+999 -> 1
+samq052 samequantum 1E-999 1E-999 -> 1
+samq053 samequantum 1.00000000E-999 1.00000000E-999 -> 1
+samq054 samequantum 1E-1007 1E-1007 -> 1
+samq055 samequantum 9.99999999E+999 9.99999999E+999 -> 1
+samq056 samequantum 1E-999 1E-999 -> 1
+samq057 samequantum 1.00000000E-999 1.00000000E-999 -> 1
+samq058 samequantum 1E-1007 1E-1007 -> 1
+
+samq061 samequantum -1E-1007 -1E-1007 -> 1
+samq062 samequantum -1.00000000E-999 -1.00000000E-999 -> 1
+samq063 samequantum -1E-999 -1E-999 -> 1
+samq064 samequantum -9.99999999E+999 -9.99999999E+999 -> 1
+samq065 samequantum -1E-1007 -1E-1007 -> 1
+samq066 samequantum -1.00000000E-999 -1.00000000E-999 -> 1
+samq067 samequantum -1E-999 -1E-999 -> 1
+samq068 samequantum -9.99999999E+999 -9.99999999E+999 -> 1
+
+samq071 samequantum -4E-1007 -1E-1007 -> 1
+samq072 samequantum -4.00000000E-999 -1.00004000E-999 -> 1
+samq073 samequantum -4E-999 -1E-999 -> 1
+samq074 samequantum -4.99999999E+999 -9.99949999E+999 -> 1
+samq075 samequantum -4E-1007 -1E-1007 -> 1
+samq076 samequantum -4.00000000E-999 -1.00400000E-999 -> 1
+samq077 samequantum -4E-999 -1E-999 -> 1
+samq078 samequantum -4.99999999E+999 -9.94999999E+999 -> 1
+samq081 samequantum -4E-1006 -1E-1007 -> 0
+samq082 samequantum -4.00000000E-999 -1.00004000E-996 -> 0
+samq083 samequantum -4E-996 -1E-999 -> 0
+samq084 samequantum -4.99999999E+999 -9.99949999E+996 -> 0
+samq085 samequantum -4E-1006 -1E-1007 -> 0
+samq086 samequantum -4.00000000E-999 -1.00400000E-996 -> 0
+samq087 samequantum -4E-996 -1E-999 -> 0
+samq088 samequantum -4.99999999E+999 -9.94999999E+996 -> 0
+
+-- specials & combinations
samq0110 samequantum -Inf -Inf -> 1
samq0111 samequantum -Inf Inf -> 1
samq0112 samequantum -Inf NaN -> 0