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 --
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. --
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 --
19
------------------------------------------------------------------------
29
cpyx001 copy +7.50 -> 7.50
32
cpyx011 copy Infinity -> Infinity
33
cpyx012 copy -Infinity -> -Infinity
36
cpyx021 copy NaN -> NaN
37
cpyx022 copy -NaN -> -NaN
38
cpyx023 copy sNaN -> sNaN
39
cpyx024 copy -sNaN -> -sNaN
41
-- NaNs, non-0 payload
42
cpyx031 copy NaN10 -> NaN10
43
cpyx032 copy -NaN10 -> -NaN10
44
cpyx033 copy sNaN10 -> sNaN10
45
cpyx034 copy -sNaN10 -> -sNaN10
46
cpyx035 copy NaN7 -> NaN7
47
cpyx036 copy -NaN7 -> -NaN7
48
cpyx037 copy sNaN101 -> sNaN101
49
cpyx038 copy -sNaN101 -> -sNaN101
55
cpyx104 copy -75 -> -75
56
cpyx105 copy 7.50 -> 7.50
57
cpyx106 copy -7.50 -> -7.50
58
cpyx107 copy 7.500 -> 7.500
59
cpyx108 copy -7.500 -> -7.500
64
cpyx113 copy 0E+4 -> 0E+4
65
cpyx114 copy -0E+4 -> -0E+4
66
cpyx115 copy 0.0000 -> 0.0000
67
cpyx116 copy -0.0000 -> -0.0000
68
cpyx117 copy 0E-141 -> 0E-141
69
cpyx118 copy -0E-141 -> -0E-141
71
-- full coefficients, alternating bits
72
cpyx121 copy 268268268 -> 268268268
73
cpyx122 copy -268268268 -> -268268268
74
cpyx123 copy 134134134 -> 134134134
75
cpyx124 copy -134134134 -> -134134134
78
cpyx131 copy 9.99999999E+999 -> 9.99999999E+999
79
cpyx132 copy 1E-999 -> 1E-999
80
cpyx133 copy 1.00000000E-999 -> 1.00000000E-999
81
cpyx134 copy 1E-1007 -> 1E-1007
83
cpyx135 copy -1E-1007 -> -1E-1007
84
cpyx136 copy -1.00000000E-999 -> -1.00000000E-999
85
cpyx137 copy -1E-999 -> -1E-999
86
cpyx138 copy -9.99999999E+999 -> -9.99999999E+999