]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/ddCopy.decTest
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / decimaltestdata / ddCopy.decTest
1 ------------------------------------------------------------------------
2 -- ddCopy.decTest -- quiet decDouble 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 ------------------------------------------------------------------------
20 version: 2.59
21
22 -- All operands and results are decDoubles.
23 precision: 16
24 maxExponent: 384
25 minExponent: -383
26 extended: 1
27 clamp: 1
28 rounding: half_even
29
30 -- Sanity check
31 ddcpy001 copy +7.50 -> 7.50
32
33 -- Infinities
34 ddcpy011 copy Infinity -> Infinity
35 ddcpy012 copy -Infinity -> -Infinity
36
37 -- NaNs, 0 payload
38 ddcpy021 copy NaN -> NaN
39 ddcpy022 copy -NaN -> -NaN
40 ddcpy023 copy sNaN -> sNaN
41 ddcpy024 copy -sNaN -> -sNaN
42
43 -- NaNs, non-0 payload
44 ddcpy031 copy NaN10 -> NaN10
45 ddcpy032 copy -NaN10 -> -NaN10
46 ddcpy033 copy sNaN10 -> sNaN10
47 ddcpy034 copy -sNaN10 -> -sNaN10
48 ddcpy035 copy NaN7 -> NaN7
49 ddcpy036 copy -NaN7 -> -NaN7
50 ddcpy037 copy sNaN101 -> sNaN101
51 ddcpy038 copy -sNaN101 -> -sNaN101
52
53 -- finites
54 ddcpy101 copy 7 -> 7
55 ddcpy102 copy -7 -> -7
56 ddcpy103 copy 75 -> 75
57 ddcpy104 copy -75 -> -75
58 ddcpy105 copy 7.50 -> 7.50
59 ddcpy106 copy -7.50 -> -7.50
60 ddcpy107 copy 7.500 -> 7.500
61 ddcpy108 copy -7.500 -> -7.500
62
63 -- zeros
64 ddcpy111 copy 0 -> 0
65 ddcpy112 copy -0 -> -0
66 ddcpy113 copy 0E+4 -> 0E+4
67 ddcpy114 copy -0E+4 -> -0E+4
68 ddcpy115 copy 0.0000 -> 0.0000
69 ddcpy116 copy -0.0000 -> -0.0000
70 ddcpy117 copy 0E-141 -> 0E-141
71 ddcpy118 copy -0E-141 -> -0E-141
72
73 -- full coefficients, alternating bits
74 ddcpy121 copy 2682682682682682 -> 2682682682682682
75 ddcpy122 copy -2682682682682682 -> -2682682682682682
76 ddcpy123 copy 1341341341341341 -> 1341341341341341
77 ddcpy124 copy -1341341341341341 -> -1341341341341341
78
79 -- Nmax, Nmin, Ntiny
80 ddcpy131 copy 9.999999999999999E+384 -> 9.999999999999999E+384
81 ddcpy132 copy 1E-383 -> 1E-383
82 ddcpy133 copy 1.000000000000000E-383 -> 1.000000000000000E-383
83 ddcpy134 copy 1E-398 -> 1E-398
84
85 ddcpy135 copy -1E-398 -> -1E-398
86 ddcpy136 copy -1.000000000000000E-383 -> -1.000000000000000E-383
87 ddcpy137 copy -1E-383 -> -1E-383
88 ddcpy138 copy -9.999999999999999E+384 -> -9.999999999999999E+384