Ć
LNö9c       sl     d  Z    d k Z  d k l Z l Z l Z l Z  d   Z  d   Z 8 d   Z	 ť e   d S(   s(   Test the arraymodule.
   Roger E. Masse
N(   s   verboses   TESTFNs   unlinks
   TestFailedc     s_    
 t  d d   x5 d d d d d d g d  r }   t  |  d	  q1 W t 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 X t  o  d |  | d f GHn  y<  t i |  | d g  }   t d |  | d f  Wn " t j
 o
 # n X% t  o & d |  | f GHn ' y ( t i |  | g  } Wn" ) * t d |  | f  n X- t  o . d |  | d f GHn / y< 0 t i |  | d g  } 1 t d |  | d f  Wn 3 t j
 o
 4 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ĺ	  8 : t  i  |   } ; | i |  < t o = d d GH> d G| GHn ? | i @ | i A | i d d d d f j o B | i   n D | i d j o˛ E t	 t
 d	  } F | i d
  G | i   H t	 t
 d  } I | i | d  J | i   K t o L d G| GHn M | i d d d g  N t o O d G| GHn n Q | i d |  R t o S d | i G| GHn T t	 t
 d	  } U | i |  V | i   W | i   X | i   Y t o Z d | i G| i   GHn [ t o \ d | i G| i   GHn _ |  d j o` t  i  |  d  } a | | d *b | t  i  |  d  j o c t d |   n d t  i  |  d  } e | | d )f | t  i  |  d  j o g t d |   n h t  i  |  d  } i | | d d +j | t  i  |  d  j o k t d |   n l | i d  d j o m t d |   n n | i d  d j o o t d  |   n p | i d  q | t  i  |  d  j o r t d! |   n s | i d  d j o t t d" |   n u | i d  d j o v t d" |   n w | i t  i  |  d#   x | t  i  |  d$  j o y t d% |   n z | 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 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 ) | 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ę   







$.$.$1.%1%%('	#(
   s   __doc__s   arrays   test_supports   verboses   TESTFNs   unlinks
   TestFaileds   mains   testoverflows   testtype(    s,   /mit/python/lib/python2.0/test/test_array.pys   ? s   "
&