mò
­fIc           @   s§   d  k  Z  d k l Z l Z d  k Z d  k Z d e i f d „  ƒ  YZ d Z d Z	 d Z
 d Z d Z d	 Z d
 e i f d „  ƒ  YZ e i e  ƒ Z e e e e ƒ d  S(   N(   s   run_unittests   findfilet
   TestSFbugsc           B   s   t  Z d „  Z d „  Z RS(   Nc         C   s[   t  i d  g  g  ƒ } |  i | i ƒ  d ƒ |  i | i ƒ  d ƒ |  i | i ƒ  d ƒ d  S(   Ni   (	   t   difflibt   SequenceMatchert   Nonet   st   selft   assertEqualt   ratiot   quick_ratiot   real_quick_ratio(   R   R   (    (    t.   /mit/python/lib/python2.4/test/test_difflib.pyt   test_ratio_for_null_seqn   s    c         C   sW   t  i d  g  g  ƒ i ƒ  } |  i t | i ƒ t  i	 g  g  ƒ } |  i t | i ƒ d  S(   N(   R   R   R   t   get_grouped_opcodest	   group_genR   t   assertRaisest   StopIterationt   nextt   unified_difft   diff_gen(   R   R   R   (    (    R
   t   test_comparing_empty_lists   s    (   t   __name__t
   __module__R   R   (    (    (    R
   R       s   	s   
   1. Beautiful is beTTer than ugly.
   2. Explicit is better than implicit.
   3. Simple is better than complex.
   4. Complex is better than complicated.
s™   
   1. Beautiful is better than ugly.
   3.   Simple is better than complex.
   4. Complicated is better than complex.
   5. Flat is better than nested.
sÞ   
		Line 1: preceeded by from:[tt] to:[ssss]
  		Line 2: preceeded by from:[sstt] to:[sssst]
  	 	Line 3: preceeded by from:[sstst] to:[ssssss]
Line 4:  	has from:[sst] to:[sss] after :
Line 5: has from:[t] to:[ss] at end	
sá   
    Line 1: preceeded by from:[tt] to:[ssss]
    	Line 2: preceeded by from:[sstt] to:[sssst]
      Line 3: preceeded by from:[sstst] to:[ssssss]
Line 4:   has from:[sst] to:[sss] after :
Line 5: has from:[t] to:[ss] at end
sô   line 0
1234567890123456789012345689012345
line 1
line 2
line 3
line 4   changed
line 5   changed
line 6   changed
line 7
line 8  subtracted
line 9
1234567890123456789012345689012345
short line
just fits in!!
just fits in two lines yup!!
the endsù   line 0
1234567890123456789012345689012345
line 1
line 2    added
line 3
line 4   chanGEd
line 5a  chanGed
line 6a  changEd
line 7
line 8
line 9
1234567890
another long line that needs to be wrapped
just fitS in!!
just fits in two lineS yup!!
the endt   TestSFpatchesc           B   s   t  Z d „  Z RS(   Nc         C   sÅ  t  d d d } t d d d }	 d d | } d d |	 }
 | i ƒ  } |	 i ƒ  }	 | i ƒ  } |
 i ƒ  }
 t i ƒ  } t	 i ƒ  } t } t } t i ƒ  } t i d d ƒ } t i d d ƒ } | i | |	 d	 d
 d t d d ƒ} d i d | i | |	 d	 d
 d t ƒd | i | |
 d	 d
 d t ƒd | i | |	 d	 d
 d t d d ƒd | i | |	 d	 d
 d t d d ƒd | i | | d	 d
 d t ƒd | i | | d	 d
 d t ƒd | i g  g  d	 d
 d t ƒd | i g  g  d	 d
 d t ƒd | i | | ƒ d | i | | ƒ d | i | i ƒ  | i ƒ  d t d d ƒd | i | i ƒ  | i ƒ  ƒ d | i | i t ƒ | i t ƒ ƒ g ƒ } | i d d | ƒ } t t d  ƒ ƒ i ƒ  } |  i" | | ƒ d  S(!   Ns   123
i
   i   s   456
t   tabsizei   t
   wrapcolumni   t   fromt   tot   contextt   numlinesi   s   
s8   <h2>Context (first diff within numlines=5(default))</h2>s7   <h2>Context (first diff after numlines=5(default))</h2>s   <h2>Context (numlines=6)</h2>i   s   <h2>Context (numlines=0)</h2>i    s   <h2>Same Context</h2>s   <h2>Same Full</h2>s   <h2>Empty Context</h2>s   <h2>Empty Full</h2>s   <h2>tabsize=2</h2>s   <h2>tabsize=default</h2>s+   <h2>Context (wrapcolumn=14,numlines=0)</h2>s#   <h2>wrapcolumn=14,splitlines()</h2>s'   <h2>wrapcolumn=14,splitlines(True)</h2>s   </body>s   
%s
</body>s   test_difflib_expect.html(#   t   patch914575_from1t   f1at   patch914575_to1t   t1at   f1bt   t1bt
   splitlinest   patch914575_from2t   f2t   patch914575_to2t   t2t   patch914575_from3t   f3t   patch914575_to3t   t3R   t   HtmlDifft   it   jt   kt	   make_filet   Falset   fullt   joint
   make_tablet   Truet   tablest   replacet   actualt   opent   findfilet   readt   expectR   R   (   R   R%   R)   R2   R<   R6   R!   R   R8   R    R"   R-   R/   R.   R'   R+   (    (    R
   t   test_html_diffX   s*    $ÿ œ(   R   R   R=   (    (    (    R
   R   V   s   (   R   t   test.test_supportt   run_unittestR:   t   unittestt   doctestt   TestCaseR    R   R   R$   R&   R(   R*   R   t   DocTestSuitet   Doctests(   R   R(   R$   R&   R*   R   R   R@   R   RD   R    RA   R?   R:   (    (    R
   t   ?   s   			<