annotate Lib/test/decimaltestdata/ddCopyAbs.decTest @ 79675:c0a2294de787 2.7

Issue #16199: Backport 2to3 typo fix from 3.2.
author Chris Jerdonek <chris.jerdonek@gmail.com>
date Thu, 11 Oct 2012 16:15:46 -0700
parents b36cb4602e21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68247
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
1 ------------------------------------------------------------------------
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
2 -- ddCopyAbs.decTest -- quiet decDouble copy and set sign to zero --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
3 -- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
4 ------------------------------------------------------------------------
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
5 -- Please see the document "General Decimal Arithmetic Testcases" --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
6 -- at http://www2.hursley.ibm.com/decimal for the description of --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
7 -- these testcases. --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
8 -- --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
9 -- These testcases are experimental ('beta' versions), and they --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
10 -- may contain errors. They are offered on an as-is basis. In --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
11 -- particular, achieving the same results as the tests here is not --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
12 -- a guarantee that an implementation complies with any Standard --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
13 -- or specification. The tests are not exhaustive. --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
14 -- --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
15 -- Please send comments, suggestions, and corrections to the author: --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
16 -- Mike Cowlishaw, IBM Fellow --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
17 -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
18 -- mfc@uk.ibm.com --
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
19 ------------------------------------------------------------------------
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
20 version: 2.59
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
21
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
22 -- All operands and results are decDoubles.
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
23 precision: 16
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
24 maxExponent: 384
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
25 minExponent: -383
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
26 extended: 1
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
27 clamp: 1
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
28 rounding: half_even
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
29
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
30 -- Sanity check
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
31 ddcpa001 copyabs +7.50 -> 7.50
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
32
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
33 -- Infinities
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
34 ddcpa011 copyabs Infinity -> Infinity
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
35 ddcpa012 copyabs -Infinity -> Infinity
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
36
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
37 -- NaNs, 0 payload
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
38 ddcpa021 copyabs NaN -> NaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
39 ddcpa022 copyabs -NaN -> NaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
40 ddcpa023 copyabs sNaN -> sNaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
41 ddcpa024 copyabs -sNaN -> sNaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
42
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
43 -- NaNs, non-0 payload
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
44 ddcpa031 copyabs NaN10 -> NaN10
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
45 ddcpa032 copyabs -NaN15 -> NaN15
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
46 ddcpa033 copyabs sNaN15 -> sNaN15
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
47 ddcpa034 copyabs -sNaN10 -> sNaN10
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
48 ddcpa035 copyabs NaN7 -> NaN7
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
49 ddcpa036 copyabs -NaN7 -> NaN7
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
50 ddcpa037 copyabs sNaN101 -> sNaN101
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
51 ddcpa038 copyabs -sNaN101 -> sNaN101
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
52
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
53 -- finites
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
54 ddcpa101 copyabs 7 -> 7
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
55 ddcpa102 copyabs -7 -> 7
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
56 ddcpa103 copyabs 75 -> 75
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
57 ddcpa104 copyabs -75 -> 75
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
58 ddcpa105 copyabs 7.10 -> 7.10
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
59 ddcpa106 copyabs -7.10 -> 7.10
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
60 ddcpa107 copyabs 7.500 -> 7.500
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
61 ddcpa108 copyabs -7.500 -> 7.500
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
62
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
63 -- zeros
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
64 ddcpa111 copyabs 0 -> 0
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
65 ddcpa112 copyabs -0 -> 0
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
66 ddcpa113 copyabs 0E+6 -> 0E+6
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
67 ddcpa114 copyabs -0E+6 -> 0E+6
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
68 ddcpa115 copyabs 0.0000 -> 0.0000
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
69 ddcpa116 copyabs -0.0000 -> 0.0000
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
70 ddcpa117 copyabs 0E-141 -> 0E-141
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
71 ddcpa118 copyabs -0E-141 -> 0E-141
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
72
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
73 -- full coefficients, alternating bits
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
74 ddcpa121 copyabs 2682682682682682 -> 2682682682682682
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
75 ddcpa122 copyabs -2682682682682682 -> 2682682682682682
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
76 ddcpa123 copyabs 1341341341341341 -> 1341341341341341
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
77 ddcpa124 copyabs -1341341341341341 -> 1341341341341341
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
78
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
79 -- Nmax, Nmin, Ntiny
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
80 ddcpa131 copyabs 9.999999999999999E+384 -> 9.999999999999999E+384
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
81 ddcpa132 copyabs 1E-383 -> 1E-383
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
82 ddcpa133 copyabs 1.000000000000000E-383 -> 1.000000000000000E-383
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
83 ddcpa134 copyabs 1E-398 -> 1E-398
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
84
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
85 ddcpa135 copyabs -1E-398 -> 1E-398
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
86 ddcpa136 copyabs -1.000000000000000E-383 -> 1.000000000000000E-383
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
87 ddcpa137 copyabs -1E-383 -> 1E-383
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
88 ddcpa138 copyabs -9.999999999999999E+384 -> 9.999999999999999E+384