symbian-qemu-0.9.1-12/python-win32-2.6.1/lib/test/decimaltestdata/dqCopy.decTest
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 ------------------------------------------------------------------------
       
     2 -- dqCopy.decTest -- quiet decQuad 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.58
       
    21 
       
    22 -- All operands and results are decQuads.
       
    23 extended:    1
       
    24 clamp:       1
       
    25 precision:   34
       
    26 maxExponent: 6144
       
    27 minExponent: -6143
       
    28 rounding:    half_even
       
    29 
       
    30 -- Sanity check
       
    31 dqcpy001 copy       +7.50  -> 7.50
       
    32 
       
    33 -- Infinities
       
    34 dqcpy011 copy  Infinity    -> Infinity
       
    35 dqcpy012 copy  -Infinity   -> -Infinity
       
    36 
       
    37 -- NaNs, 0 payload
       
    38 dqcpy021 copy         NaN  -> NaN
       
    39 dqcpy022 copy        -NaN  -> -NaN
       
    40 dqcpy023 copy        sNaN  -> sNaN
       
    41 dqcpy024 copy       -sNaN  -> -sNaN
       
    42 
       
    43 -- NaNs, non-0 payload
       
    44 dqcpy031 copy       NaN10  -> NaN10
       
    45 dqcpy032 copy      -NaN10  -> -NaN10
       
    46 dqcpy033 copy      sNaN10  -> sNaN10
       
    47 dqcpy034 copy     -sNaN10  -> -sNaN10
       
    48 dqcpy035 copy       NaN7   -> NaN7
       
    49 dqcpy036 copy      -NaN7   -> -NaN7
       
    50 dqcpy037 copy      sNaN101 -> sNaN101
       
    51 dqcpy038 copy     -sNaN101 -> -sNaN101
       
    52 
       
    53 -- finites
       
    54 dqcpy101 copy          7   -> 7
       
    55 dqcpy102 copy         -7   -> -7
       
    56 dqcpy103 copy         75   -> 75
       
    57 dqcpy104 copy        -75   -> -75
       
    58 dqcpy105 copy       7.50   -> 7.50
       
    59 dqcpy106 copy      -7.50   -> -7.50
       
    60 dqcpy107 copy       7.500  -> 7.500
       
    61 dqcpy108 copy      -7.500  -> -7.500
       
    62 
       
    63 -- zeros
       
    64 dqcpy111 copy          0   -> 0
       
    65 dqcpy112 copy         -0   -> -0
       
    66 dqcpy113 copy       0E+4   -> 0E+4
       
    67 dqcpy114 copy      -0E+4   -> -0E+4
       
    68 dqcpy115 copy     0.0000   -> 0.0000
       
    69 dqcpy116 copy    -0.0000   -> -0.0000
       
    70 dqcpy117 copy      0E-141  -> 0E-141
       
    71 dqcpy118 copy     -0E-141  -> -0E-141
       
    72 
       
    73 -- full coefficients, alternating bits
       
    74 dqcpy121 copy   2682682682682682682682682682682682    ->  2682682682682682682682682682682682
       
    75 dqcpy122 copy  -2682682682682682682682682682682682    -> -2682682682682682682682682682682682
       
    76 dqcpy123 copy   1341341341341341341341341341341341    ->  1341341341341341341341341341341341
       
    77 dqcpy124 copy  -1341341341341341341341341341341341    -> -1341341341341341341341341341341341
       
    78 
       
    79 -- Nmax, Nmin, Ntiny
       
    80 dqcpy131 copy  9.999999999999999999999999999999999E+6144   ->  9.999999999999999999999999999999999E+6144
       
    81 dqcpy132 copy  1E-6143                                     ->  1E-6143
       
    82 dqcpy133 copy  1.000000000000000000000000000000000E-6143   ->  1.000000000000000000000000000000000E-6143
       
    83 dqcpy134 copy  1E-6176                                     ->  1E-6176
       
    84 
       
    85 dqcpy135 copy  -1E-6176                                    -> -1E-6176
       
    86 dqcpy136 copy  -1.000000000000000000000000000000000E-6143  -> -1.000000000000000000000000000000000E-6143
       
    87 dqcpy137 copy  -1E-6143                                    -> -1E-6143
       
    88 dqcpy138 copy  -9.999999999999999999999999999999999E+6144  -> -9.999999999999999999999999999999999E+6144