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