Current Path : /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 : //usr/local/lib/python2.5/test/test_difflib.pyo |
³ò h”Rc @ sÁ d d k Z d d k l Z l Z d d k Z d d k Z d 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 d „ Z e d j o e ƒ n d S( iÿÿÿÿN( t run_unittestt findfilet TestSFbugsc B s e Z d „ Z d „ Z RS( c C s[ t i d g g ƒ } | i | i ƒ d ƒ | i | i ƒ d ƒ | i | i ƒ d ƒ d S( Ni ( t difflibt SequenceMatchert Nonet assertEqualt ratiot quick_ratiot real_quick_ratio( t selft s( ( s- /usr/local/lib/python2.5/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 assertRaisest StopIterationt nextt unified_diff( R t group_gent diff_gen( ( s- /usr/local/lib/python2.5/test/test_difflib.pyt test_comparing_empty_lists s ( t __name__t __module__R R ( ( ( s- /usr/local/lib/python2.5/test/test_difflib.pyR 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 e Z d „ Z d „ Z RS( c 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 patch914575_to1t splitlinest patch914575_from2t patch914575_to2t patch914575_from3t patch914575_to3R t HtmlDifft make_filet Falset joint make_tablet Truet replacet openR t readR ( R t f1at t1at f1bt t1bt f2t t2t f3t t3t it jt kt fullt tablest actualt expect( ( s- /usr/local/lib/python2.5/test/test_difflib.pyt test_html_diffY s\ $!!'*c C s« t i ƒ } g } t | d ƒ D]# } | | d o d p d | q! ~ } g } t | d ƒ D]# } | | d o d p d | qb ~ } t i d | | ƒ i ƒ d S( Ni s K:%ds V:A:%ds V:B:%d( t syst getrecursionlimitt rangeR R R t get_opcodes( R t limitt _[1]R6 t oldt _[2]t new( ( s- /usr/local/lib/python2.5/test/test_difflib.pyt test_recursion_limit“ s AA( R R R= RG ( ( ( s- /usr/local/lib/python2.5/test/test_difflib.pyR W s :c C s/ d t i _ t i t ƒ } t t t | ƒ d S( Ni ( R R% t _default_prefixt doctestt DocTestSuiteR R R ( t Doctests( ( s- /usr/local/lib/python2.5/test/test_difflib.pyt test_main› s t __main__( R t test.test_supportR R t unittestRI R>