Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/decimaltestdata/extra.decTest

    r2 r391  
    214214extr1660 shift 1234567 5 -> NaN Invalid_operation
    215215
     216-- Cases where the power function was impossibly slow to determine that the
     217-- result is inexact.  Thanks Stefan Krah for identifying this problem.
     218precision: 16
     219maxExponent: 999999999
     220minExponent: -999999999
     221extr1700 power 10 1e-999999999 -> 1.000000000000000 Inexact Rounded
     222extr1701 power 100.0 -557.71e-742888888 -> 1.000000000000000 Inexact Rounded
     223extr1702 power 10 1e-100 -> 1.000000000000000 Inexact Rounded
     224
     225-- Another one (see issue #12080).  Thanks again to Stefan Krah.
     226extr1703 power 4 -1.2e-999999999 -> 1.000000000000000 Inexact Rounded
     227
     228-- A couple of interesting exact cases for power.  Note that the specification
     229-- requires these to be reported as Inexact.
     230extr1710 power 1e375 56e-3 -> 1.000000000000000E+21 Inexact Rounded
     231extr1711 power 10000 0.75 -> 1000.000000000000 Inexact Rounded
     232extr1712 power 1e-24 0.875 -> 1.000000000000000E-21 Inexact Rounded
     233
     234-- Some more exact cases, exercising power with negative second argument.
     235extr1720 power 400 -0.5 -> 0.05000000000000000 Inexact Rounded
     236extr1721 power 4096 -0.75 -> 0.001953125000000000 Inexact Rounded
     237extr1722 power 625e4 -0.25 -> 0.02000000000000000 Inexact Rounded
     238
     239-- Nonexact cases, to exercise some of the early exit conditions from
     240-- _power_exact.
     241extr1730 power 2048 -0.75 -> 0.003284751622084822 Inexact Rounded
    216242
    217243
     
    27332759pwmx439 power 19 1728 1729 -> 456
    27342760pwmx440 power 20 1728 1729 -> 1
     2761
     2762-- plus and minus zero in various rounding modes (see issue 11131)
     2763extended: 1
     2764precision: 9
     2765maxexponent: 384
     2766minexponent: -383
     2767
     2768rounding: half_even
     2769plux1000 plus 0.0 -> 0.0
     2770plux1001 plus -0.0 -> 0.0
     2771minx1000 minus 0.0 -> 0.0
     2772minx1001 minus -0.0 -> 0.0
     2773absx1000 abs 0.0 -> 0.0
     2774absx1001 abs -0.0 -> 0.0
     2775
     2776rounding: half_up
     2777plux1010 plus 0.0 -> 0.0
     2778minx1010 minus 0.0 -> 0.0
     2779plux1011 plus -0.0 -> 0.0
     2780minx1011 minus -0.0 -> 0.0
     2781absx1010 abs 0.0 -> 0.0
     2782absx1011 abs -0.0 -> 0.0
     2783
     2784rounding: ceiling
     2785plux1020 plus 0.0 -> 0.0
     2786minx1020 minus 0.0 -> 0.0
     2787plux1021 plus -0.0 -> 0.0
     2788minx1021 minus -0.0 -> 0.0
     2789absx1020 abs 0.0 -> 0.0
     2790absx1021 abs -0.0 -> 0.0
     2791
     2792rounding: floor
     2793plux1030 plus 0.0 -> 0.0
     2794minx1030 minus 0.0 -> -0.0
     2795plux1031 plus -0.0 -> -0.0
     2796minx1031 minus -0.0 -> 0.0
     2797absx1030 abs 0.0 -> 0.0
     2798absx1031 abs -0.0 -> 0.0
     2799
     2800rounding: down
     2801plux1040 plus 0.0 -> 0.0
     2802minx1040 minus 0.0 -> 0.0
     2803plux1041 plus -0.0 -> 0.0
     2804minx1041 minus -0.0 -> 0.0
     2805absx1040 abs 0.0 -> 0.0
     2806absx1041 abs -0.0 -> 0.0
     2807
     2808rounding: up
     2809plux1050 plus 0.0 -> 0.0
     2810minx1050 minus 0.0 -> 0.0
     2811plux1051 plus -0.0 -> 0.0
     2812minx1051 minus -0.0 -> 0.0
     2813absx1050 abs 0.0 -> 0.0
     2814absx1051 abs -0.0 -> 0.0
     2815
     2816rounding: half_down
     2817plux1060 plus 0.0 -> 0.0
     2818minx1060 minus 0.0 -> 0.0
     2819plux1061 plus -0.0 -> 0.0
     2820minx1061 minus -0.0 -> 0.0
     2821absx1060 abs 0.0 -> 0.0
     2822absx1061 abs -0.0 -> 0.0
     2823
     2824rounding: 05up
     2825plux1070 plus 0.0 -> 0.0
     2826minx1070 minus 0.0 -> 0.0
     2827plux1071 plus -0.0 -> 0.0
     2828minx1071 minus -0.0 -> 0.0
     2829absx1070 abs 0.0 -> 0.0
     2830absx1071 abs -0.0 -> 0.0
Note: See TracChangeset for help on using the changeset viewer.