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