1------------------------------------------------------------------------
2-- copyNegate.decTest -- quiet copy and negate                        --
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
29cpnx001 copynegate       +7.50  -> -7.50
30
31-- Infinities
32cpnx011 copynegate  Infinity    -> -Infinity
33cpnx012 copynegate  -Infinity   -> Infinity
34
35-- NaNs, 0 payload
36cpnx021 copynegate         NaN  -> -NaN
37cpnx022 copynegate        -NaN  -> NaN
38cpnx023 copynegate        sNaN  -> -sNaN
39cpnx024 copynegate       -sNaN  -> sNaN
40
41-- NaNs, non-0 payload
42cpnx031 copynegate       NaN13  -> -NaN13
43cpnx032 copynegate      -NaN13  -> NaN13
44cpnx033 copynegate      sNaN13  -> -sNaN13
45cpnx034 copynegate     -sNaN13  -> sNaN13
46cpnx035 copynegate       NaN70  -> -NaN70
47cpnx036 copynegate      -NaN70  -> NaN70
48cpnx037 copynegate      sNaN101 -> -sNaN101
49cpnx038 copynegate     -sNaN101 -> sNaN101
50
51-- finites
52cpnx101 copynegate          7   -> -7
53cpnx102 copynegate         -7   -> 7
54cpnx103 copynegate         75   -> -75
55cpnx104 copynegate        -75   -> 75
56cpnx105 copynegate       7.50   -> -7.50
57cpnx106 copynegate      -7.50   -> 7.50
58cpnx107 copynegate       7.500  -> -7.500
59cpnx108 copynegate      -7.500  -> 7.500
60
61-- zeros
62cpnx111 copynegate          0   -> -0
63cpnx112 copynegate         -0   -> 0
64cpnx113 copynegate       0E+4   -> -0E+4
65cpnx114 copynegate      -0E+4   -> 0E+4
66cpnx115 copynegate     0.0000   -> -0.0000
67cpnx116 copynegate    -0.0000   -> 0.0000
68cpnx117 copynegate      0E-141  -> -0E-141
69cpnx118 copynegate     -0E-141  -> 0E-141
70
71-- full coefficients, alternating bits
72cpnx121 copynegate  268268268         -> -268268268
73cpnx122 copynegate  -268268268        -> 268268268
74cpnx123 copynegate  134134134         -> -134134134
75cpnx124 copynegate  -134134134        -> 134134134
76
77-- Nmax, Nmin, Ntiny
78cpnx131 copynegate  9.99999999E+999   -> -9.99999999E+999
79cpnx132 copynegate  1E-999                     -> -1E-999
80cpnx133 copynegate  1.00000000E-999   -> -1.00000000E-999
81cpnx134 copynegate  1E-1007                    -> -1E-1007
82
83cpnx135 copynegate  -1E-1007                   -> 1E-1007
84cpnx136 copynegate  -1.00000000E-999  -> 1.00000000E-999
85cpnx137 copynegate  -1E-999                    -> 1E-999
86cpnx138 copynegate  -9.99999999E+999  -> 9.99999999E+999
87