Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_long.pyo |
³ò h”Rc @ sC d d k Z d d k l Z d d k Z d e f d „ ƒ YZ d Z d e Z e d Z d Z d Z e e d d d e e d ?g ƒ Z e i d ƒ e i d ƒ d Z x3 e d e ƒ D]! Z e i e d ƒ e d >Z q· W[ e e d „ e ƒ e d „ e ƒ Z d e i f d „ ƒ YZ d „ Z e d j o e ƒ n d S( iÿÿÿÿN( t test_supportt Frmc B s e Z d „ Z d „ Z RS( c G s | | _ | | _ d S( N( t formatt args( t selfR R ( ( s* /usr/local/lib/python2.5/test/test_long.pyt __init__ s c C s | i | i S( N( R R ( R ( ( s* /usr/local/lib/python2.5/test/test_long.pyt __str__ s ( t __name__t __module__R R ( ( ( s* /usr/local/lib/python2.5/test/test_long.pyR s i i i iF i l UUª*UUª* l ª*UUª*UU l c C s | S( ( ( t x( ( s* /usr/local/lib/python2.5/test/test_long.pyt <lambda>$ s c C s | S( ( ( R ( ( s* /usr/local/lib/python2.5/test/test_long.pyR % s t LongTestc B s¡ e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C sD | i | d j ƒ | t } | t d } d } d } t t i ƒ t d ƒ d B} x¦ | | j o˜ | d ?d } t | | | ƒ } | i d | j o t j n ƒ | | } | | >} | d @o | d | >d B} n t t i ƒ t d ƒ } qX W| i | | j o | j n ƒ t i ƒ d j o | } n | S( Ni i l i g à?( t assert_t SHIFTt intt randomt min( R t ndigitst nbits_hit nbits_lot answert nbitst rt bits( ( s* /usr/local/lib/python2.5/test/test_long.pyt getran0 s( $ $c C sY d } x. t | ƒ D] } | t >t i d t ƒ B} q Wt i ƒ d j o | } n | S( Nl i g à?( t xrangeR R t randintt MASK( R R t i( ( s* /usr/local/lib/python2.5/test/test_long.pyt getran2H s c C s; | i } t | | ƒ \ } } | | | | } } | | | | } } | | | t d | | ƒ ƒ | | | t d | | ƒ ƒ | | | t d | | ƒ ƒ | | | | | t d | | ƒ ƒ | d j o7 | i d | j o | j n t d | | ƒ ƒ n4 | i | | j o d j n t d | | ƒ ƒ d S( Ns- multiplication does not commute for %r and %rs6 divmod returns different quotient than / for %r and %rs2 divmod returns different mod than %% for %r and %rs' x != q*y + r after divmod on x=%r, y=%ri s bad mod from divmod on %r and %r( t assertEqualt divmodR R ( R R t yt eqt qR t q2t r2t pabt pba( ( s* /usr/local/lib/python2.5/test/test_long.pyt check_divisionP s $ 7c C s t d t d ƒ t t t d ƒ } | i t d ƒ xT | D]L } | i | ƒ } x4 | D], } | i | ƒ p d } | i | | ƒ qX Wq<