annotate Lib/test/decimaltestdata/ddClass.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 -- ddClass.decTest -- decDouble Class operations --
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 -- [New 2006.11.27]
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 ddcla001 class 0 -> +Zero
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
31 ddcla002 class 0.00 -> +Zero
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
32 ddcla003 class 0E+5 -> +Zero
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
33 ddcla004 class 1E-396 -> +Subnormal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
34 ddcla005 class 0.1E-383 -> +Subnormal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
35 ddcla006 class 0.999999999999999E-383 -> +Subnormal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
36 ddcla007 class 1.000000000000000E-383 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
37 ddcla008 class 1E-383 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
38 ddcla009 class 1E-100 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
39 ddcla010 class 1E-10 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
40 ddcla012 class 1E-1 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
41 ddcla013 class 1 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
42 ddcla014 class 2.50 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
43 ddcla015 class 100.100 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
44 ddcla016 class 1E+30 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
45 ddcla017 class 1E+384 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
46 ddcla018 class 9.999999999999999E+384 -> +Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
47 ddcla019 class Inf -> +Infinity
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
48
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
49 ddcla021 class -0 -> -Zero
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
50 ddcla022 class -0.00 -> -Zero
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
51 ddcla023 class -0E+5 -> -Zero
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
52 ddcla024 class -1E-396 -> -Subnormal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
53 ddcla025 class -0.1E-383 -> -Subnormal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
54 ddcla026 class -0.999999999999999E-383 -> -Subnormal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
55 ddcla027 class -1.000000000000000E-383 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
56 ddcla028 class -1E-383 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
57 ddcla029 class -1E-100 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
58 ddcla030 class -1E-10 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
59 ddcla032 class -1E-1 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
60 ddcla033 class -1 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
61 ddcla034 class -2.50 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
62 ddcla035 class -100.100 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
63 ddcla036 class -1E+30 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
64 ddcla037 class -1E+384 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
65 ddcla038 class -9.999999999999999E+384 -> -Normal
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
66 ddcla039 class -Inf -> -Infinity
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
67
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
68 ddcla041 class NaN -> NaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
69 ddcla042 class -NaN -> NaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
70 ddcla043 class +NaN12345 -> NaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
71 ddcla044 class sNaN -> sNaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
72 ddcla045 class -sNaN -> sNaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
73 ddcla046 class +sNaN12345 -> sNaN
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
74
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
75
e2e182c40b5a Add updated .hgeol file and fix newlines in the 2.7 branch.
Georg Brandl <georg@python.org>
parents: 56838
diff changeset
76