Ć
LNö9c       sT   d  Z  d k Z d k l Z l Z l Z l Z d   Z d   Z d   Z	 e   d S(   s(   Test the arraymodule.
   Roger E. Masse
N(   s   verboses   TESTFNs   unlinks
   TestFailedc     sM   t  d d  x/ d d d d d d g d r }  t  |  d	  q( Wt t  d  S(
   Ns   cs   bs   hs   is   ls   fs   di    i   (   s   testtypes   types   unlinks   TESTFN(   s   types,   /mit/python/lib/python2.0/test/test_array.pys   main s
     c    s  t  o d |  | f GHn y t i |  | g  } Wn t d |  | f  n Xt  o d |  | d f GHn y6 t i |  | d g  } t d |  | d f  Wn t j
 o n Xt  o d |  | f GHn y t i |  | g  } Wn t d |  | f  n Xt  o d |  | d f GHn y6 t i |  | d g  } t d |  | d f  Wn t j
 o n Xd  S(   Ns   overflow test: array(%s, [%s])s!   array(%s) overflowed assigning %si   s'   array(%s) did not overflow assigning %s(   s   verboses   types
   lowerLimits   arrays   as
   TestFaileds   OverflowErrors
   upperLimit(   s   types
   lowerLimits
   upperLimits   as,   /mit/python/lib/python2.0/test/test_array.pys   testoverflow s4    c 
 
  s  t  i  |   } | i |  t o d d GHd G| GHn | i | i | i d d d d f j o | i   n | i d j o t	 t
 d	  } | i d
  | i   t	 t
 d  } | i | d  | i   t o d G| GHn | i d d d g  t o d G| GHn n | i d |  t o d | i G| GHn t	 t
 d	  } | i |  | i   | i   | i   t o d | i G| i   GHn t o d | i G| i   GHn |  d j oŁt  i  |  d  } | | d *| t  i  |  d  j o t d |   n t  i  |  d  } | | d )| t  i  |  d  j o t d |   n t  i  |  d  } | | d d +| t  i  |  d  j o t d |   n | i d  d j o t d |   n | i d  d j o t d  |   n | i d  | t  i  |  d  j o t d! |   n | i d  d j o t d" |   n | i d  d j o t d" |   n | i t  i  |  d#   | t  i  |  d$  j o t d% |   n | i   | i   | i   | i   } | d j o t d" |   n | t  i  |  d&  j o t d" |   n | i   | t  i  |  d'  j o t d( |   n nHt  i  |  d d d) d* d g  } | | d *| t  i  |  d d d) d* d d g  j o t d |   n t  i  |  d d d) d* d g  } | | d )| t  i  |  d d d d) d* d g  j o t d |   n t  i  |  d d d) d* d g  } | | d d +| t  i  |  d d d d) d* d d g  j o t d |   n | i d  d j o t d |   n | i d  d j o t d  |   n | i d  | t  i  |  d d d d) d* d g  j o t d! |   n | i d  d j o t d" |   n | i d  d j o t d" |   n | i t  i  |  d+ d, d- g   | t  i  |  d d) d* d d+ d, d- g  j o t d% |   n | i   | i   | i   | i   } | d j o t d" |   n | t  i  |  d d) d* g  j o t d" |   n | i   | t  i  |  d* d) d g  j o t d( |   n d. k l } |  d d d d f j o¨ t  i  |   } d t | d | i d, d   } t | d | i d, d   d/ } d } t | d | i d,   d/ }	 t# |  | |  t# |  i$   | |	  n d  S(0   Ni(   s   *s   array after append: s   is   bs   hs   ls   cs   ws-   The quick brown fox jumps over the lazy dog.
s   ri
   s-   char array with 10 bytes of TESTFN appended: s   as   char array with list appended: i    s$   array of %s after inserting another:s!   array of %s converted to a list: s#   array of %s converted to a string: s   abcdei   s   abcdees"   array(%s) self-slice-assign (head)s   aabcdes"   array(%s) self-slice-assign (tail)s   aabcdees"   array(%s) self-slice-assign (cntr)s   ei   s   array(%s) index-testi   s   array(%s) count-tests   array(%s) remove-tests   array(%s) pop-tests   xyzs   acdexyzs   array(%s) extend-tests   acds   dcas   array(%s) reverse-testi   i   i   i   i	   (   s   powl    (%   s   arrays   types   as   appends   examples   verboses   typecodes   itemsizes   byteswaps   opens   TESTFNs   fs   writes   closes   fromfiles   fromlists   inserts   tofiles   tolists   tostrings
   TestFaileds   indexs   counts   removes   pops   extends   xs   reverses   maths   pows   longs   signedLowerLimits   signedUpperLimits   unsignedLowerLimits   unsignedUpperLimits   testoverflows   upper(
   s   types   examples   as   fs   xs   pows   signedLowerLimits   signedUpperLimits   unsignedLowerLimits   unsignedUpperLimits,   /mit/python/lib/python2.0/test/test_array.pys   testtype8 sę    	









!+!
+!.+".


"
"%$ (
   s   __doc__s   arrays   test_supports   verboses   TESTFNs   unlinks
   TestFaileds   mains   testoverflows   testtype(    s,   /mit/python/lib/python2.0/test/test_array.pys   ? s   		
	&	