mò %U²Ic@s§dkZdklZlZdkZdkZdeifd„ƒYZdZdZ dZ dZ dZ d Z d eifd „ƒYZeieƒZeeeeƒdS( N(s run_unittestsfindfilet TestSFbugscBstZd„Zd„ZRS(NcCs[tidggƒ}|i|iƒdƒ|i|iƒdƒ|i|iƒdƒdS(Ni( tdifflibtSequenceMatchertNonetstselft assertEqualtratiot quick_ratiotreal_quick_ratio(RR((t./data/zmath/lib/python2.4/test/test_difflib.pyttest_ratio_for_null_seqnscCsWtidggƒiƒ}|it|iƒti ggƒ}|it|iƒdS(N( RRRtget_grouped_opcodest group_genRt assertRaisest StopIterationtnextt unified_difftdiff_gen(RRR ((R ttest_comparing_empty_listss(t__name__t __module__R R(((R Rs 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 TestSFpatchescBstZd„ZRS(NcCsÅtddd}tddd} dd|}dd| } |iƒ}| iƒ} |iƒ}| iƒ} tiƒ}t iƒ}t }t }tiƒ} tiddƒ} tiddƒ} | i|| d d d td d ƒ}did| i|| d d d tƒd| i|| d d d tƒd| i|| d d d td dƒd| i|| d d d td dƒd| i||d d d tƒd| i||d d d tƒd| iggd d d tƒd| iggd d d tƒd| i||ƒd| i||ƒd| i|iƒ|iƒd td dƒd| i|iƒ|iƒƒd| i|itƒ|itƒƒgƒ}|idd|ƒ}ttd ƒƒiƒ}|i"||ƒdS(!Ns123 i is456 ttabsizeit wrapcolumnitfromttotcontexttnumlinesis s8

Context (first diff within numlines=5(default))

s7

Context (first diff after numlines=5(default))

s

Context (numlines=6)

is

Context (numlines=0)

is

Same Context

s

Same Full

s

Empty Context

s

Empty Full

s

tabsize=2

s

tabsize=default

s+

Context (wrapcolumn=14,numlines=0)

s#

wrapcolumn=14,splitlines()

s'

wrapcolumn=14,splitlines(True)

ss %s stest_difflib_expect.html(#tpatch914575_from1tf1atpatch914575_to1tt1atf1btt1bt splitlinestpatch914575_from2tf2tpatch914575_to2tt2tpatch914575_from3tf3tpatch914575_to3tt3RtHtmlDifftitjtkt make_filetFalsetfulltjoint make_tabletTruettablestreplacetactualtopentfindfiletreadtexpectRR(RR%R)R2R<R6R!RR8R R"R-R/R.R'R+((R ttest_html_diffXs*       $ÿœ(RRR=(((R RVs(Rttest.test_supportt run_unittestR:tunittesttdoctesttTestCaseRRRR$R&R(R*Rt DocTestSuitetDoctests(RR(R$R&R*RRR@RRDRRAR?R:((R t?s   <