1------------------------------------------------------------------------
2-- copy.decTest -- quiet copy                                         --
3-- Copyright (c) IBM Corporation, 1981, 2008.  All rights reserved.   --
4------------------------------------------------------------------------
5-- Please see the document "General Decimal Arithmetic Testcases"     --
6-- at http://www2.hursley.ibm.com/decimal for the description of      --
7-- these testcases.                                                   --
8--                                                                    --
9-- These testcases are experimental ('beta' versions), and they       --
10-- may contain errors.  They are offered on an as-is basis.  In       --
11-- particular, achieving the same results as the tests here is not    --
12-- a guarantee that an implementation complies with any Standard      --
13-- or specification.  The tests are not exhaustive.                   --
14--                                                                    --
15-- Please send comments, suggestions, and corrections to the author:  --
16--   Mike Cowlishaw, IBM Fellow                                       --
17--   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
18--   mfc@uk.ibm.com                                                   --
19------------------------------------------------------------------------
20version: 2.59
21
22extended:    1
23precision:   9
24rounding:    half_up
25maxExponent: 999
26minExponent: -999
27
28-- Sanity check
29cpyx001 copy       +7.50  -> 7.50
30
31-- Infinities
32cpyx011 copy  Infinity    -> Infinity
33cpyx012 copy  -Infinity   -> -Infinity
34
35-- NaNs, 0 payload
36cpyx021 copy         NaN  -> NaN
37cpyx022 copy        -NaN  -> -NaN
38cpyx023 copy        sNaN  -> sNaN
39cpyx024 copy       -sNaN  -> -sNaN
40
41-- NaNs, non-0 payload
42cpyx031 copy       NaN10  -> NaN10
43cpyx032 copy      -NaN10  -> -NaN10
44cpyx033 copy      sNaN10  -> sNaN10
45cpyx034 copy     -sNaN10  -> -sNaN10
46cpyx035 copy       NaN7   -> NaN7
47cpyx036 copy      -NaN7   -> -NaN7
48cpyx037 copy      sNaN101 -> sNaN101
49cpyx038 copy     -sNaN101 -> -sNaN101
50
51-- finites
52cpyx101 copy          7   -> 7
53cpyx102 copy         -7   -> -7
54cpyx103 copy         75   -> 75
55cpyx104 copy        -75   -> -75
56cpyx105 copy       7.50   -> 7.50
57cpyx106 copy      -7.50   -> -7.50
58cpyx107 copy       7.500  -> 7.500
59cpyx108 copy      -7.500  -> -7.500
60
61-- zeros
62cpyx111 copy          0   -> 0
63cpyx112 copy         -0   -> -0
64cpyx113 copy       0E+4   -> 0E+4
65cpyx114 copy      -0E+4   -> -0E+4
66cpyx115 copy     0.0000   -> 0.0000
67cpyx116 copy    -0.0000   -> -0.0000
68cpyx117 copy      0E-141  -> 0E-141
69cpyx118 copy     -0E-141  -> -0E-141
70
71-- full coefficients, alternating bits
72cpyx121 copy   268268268        -> 268268268
73cpyx122 copy  -268268268        -> -268268268
74cpyx123 copy   134134134        -> 134134134
75cpyx124 copy  -134134134        -> -134134134
76
77-- Nmax, Nmin, Ntiny
78cpyx131 copy  9.99999999E+999   -> 9.99999999E+999
79cpyx132 copy  1E-999            -> 1E-999
80cpyx133 copy  1.00000000E-999   -> 1.00000000E-999
81cpyx134 copy  1E-1007           -> 1E-1007
82
83cpyx135 copy  -1E-1007          -> -1E-1007
84cpyx136 copy  -1.00000000E-999  -> -1.00000000E-999
85cpyx137 copy  -1E-999           -> -1E-999
86cpyx138 copy  -9.99999999E+999  -> -9.99999999E+999
87