tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
P\¬Qc@s
ddlZddlmZmZddlZddlZddlZdejfd„ƒYZdejfd„ƒYZ    dejfd„ƒYZ
d    Z d
Z d Z d Zd ZdZdejfd„ƒYZdejfd„ƒYZd„ZedkreƒndS(iÿÿÿÿN(t run_unittesttfindfilet TestWithAsciicBseZd„Zd„ZRS(c    CsÍtjddddddƒ}|j|jƒdddƒ|jt|jƒƒddgƒtjddddd ddd ƒ}|j|jƒdddƒ|jt|jƒƒdddgƒdS(Ntbidtag×£p=
×ï?tplacesitinsertiitequaliei2i3(sinsertiiii(Riidiie(Rii2ii2(sinserti2i2i2i3(Ri2idi3ie(tdifflibtSequenceMatchertNonetassertAlmostEqualtratiot assertEqualtlistt get_opcodes(tselftsm((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_one_insert    s!
)c    Csvtjddddddddddƒ}|j|jƒdddƒ|jt|jƒƒdddgƒdS(NRi(tcRg+‡ÙÎï?RiRitdeletei)iQiP(sequalii(ii((Ri(i)i(i((sequali)iQi(iP(RR    R
R R R RR(RR((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_one_deletes 1(t__name__t
__module__RR(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyRs     t TestAutojunkcBseZdZd„ZRS(s-Tests for the autojunk parameter added in 2.7cCs„dd}ddd}tjd||ƒ}|j|jƒdddƒtjd||dtƒ}|j|jƒdddƒdS(    NRiÈRiRitautojunkgìQ¸…ëï?(RR    R
R R tFalse(Rtseq1tseq2R((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyt#test_one_insert_homogenous_sequence!s 
(RRt__doc__R(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyRst
TestSFbugscBs#eZd„Zd„Zd„ZRS(cCs[tjdggƒ}|j|jƒdƒ|j|jƒdƒ|j|jƒdƒdS(Ni(RR    R
R R t quick_ratiotreal_quick_ratio(Rts((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_ratio_for_null_seqn0scCsWtjdggƒjƒ}|jt|jƒtjggƒ}|jt|jƒdS(N(RR    R
tget_grouped_opcodest assertRaisest StopIterationtnextt unified_diff(Rt    group_gentdiff_gen((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_comparing_empty_lists7scCsxttjƒjdgdgƒƒ}|jd|dƒ|jd|dƒ|jd|dƒ|jd    |d
ƒdS( Ns    I am a buggys        I am a bugs-     I am a buggyis?            --
is+         I am a bugis? +
i(RRtDiffertcompareR (Rtdiff((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_added_tab_hint>s
$(RRR#R+R/(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/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.
   1. Beautiful is better than ugly.
   3.   Simple is better than complex.
   4. Complicated is better than complex.
   5. Flat is better than nested.
       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    
    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 TestSFpatchescBseZd„Zd„ZRS(cCsÎtddd}tddd}dd|}dd|}|jƒ}|jƒ}|jƒ}|jƒ}tjƒ}tjƒ}t}t}tjƒ}    tjddƒ}
tjddƒ} |    j    ||d    d
d t
d d ƒ} dj d|    j ||d    d
d t ƒd|    j ||d    d
d t ƒd|    j ||d    d
d t d dƒd|    j ||d    d
d t d dƒd|    j ||d    d
d t ƒd|    j ||d    d
d t
ƒd|    j ggd    d
d t ƒd|    j ggd    d
d t
ƒd|
j ||ƒd|    j ||ƒd| j |jƒ|jƒd t d dƒd| j |jƒ|jƒƒd| j |jt ƒ|jt ƒƒgƒ} | jdd| ƒ}ttd ƒƒ}|j||jƒƒWdQXdS(!Ns123
i
is456
ttabsizeit
wrapcolumnitfromttotcontexttnumlinesis
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>is<h2>Context (numlines=0)</h2>is<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>stest_difflib_expect.html(tpatch914575_from1tpatch914575_to1t
splitlinestpatch914575_from2tpatch914575_to2tpatch914575_from3tpatch914575_to3RtHtmlDifft    make_fileRtjoint
make_tabletTruetreplacetopenRR tread(Rtf1att1atf1btt1btf2tt2tf3tt3titjtktfullttablestactualtfp((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_html_diffˆs\       $!!'*cCs—tjƒ}gt|dƒD] }|dr3dp6d|^q}gt|dƒD] }|drjdpmd|^qT}tjd||ƒjƒdS(NisK:%dsV:A:%dsV:B:%d(tsystgetrecursionlimittrangeRR    R
R(RtlimitRNtoldtnew((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_recursion_limitÁs 77(RRRUR\(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyR0†s    9tTestOutputFormatcBs,eZd„Zd„Zd„Zd„ZRS(cCsŒddddddg}tjdd|Œ}|jt|ƒd    d
!d d gƒtjdd|Œ}|jt|ƒd    d
!d dgƒdS(NtonettwotOriginaltCurrents2005-01-26 23:30:50s2010-04-02 10:20:52tlinetermtiis --- Original    2005-01-26 23:30:50s+++ Current    2010-04-02 10:20:52s *** Original    2005-01-26 23:30:50s--- Current    2010-04-02 10:20:52(RR(R Rt context_diff(Rtargstudtcd((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_tab_delimiterÊs  
cCs†ddddg}tjdd|Œ}|jt|ƒdd!d    d
gƒtjdd|Œ}|jt|ƒdd!d d gƒdS( NR^R_R`RaRbRciis --- Originals +++ Currents *** Originals --- Current(RR(R RRd(RReRfRg((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyt&test_no_trailing_tab_on_empty_filedateÖs
#cCsd}tj}|j|ddƒdƒ|j|ddƒdƒ|j|ddƒdƒ|j|ddƒd    ƒ|j|d
d
ƒd ƒdS( Ns’           Each <range> field shall be of the form:
             %1d", <beginning line number>  if the range contains exactly one line,
           and:
            "%1d,%1d", <beginning line number>, <number of lines> otherwise.
           If a range is empty, its beginning line number shall be the number of
           the line just before the range, or 0 if the empty range starts the file.
        is3,0it4is4,2is4,3is0,0(Rt_format_range_unifiedR (Rtspectfmt((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_range_format_unifiedÞs        cCsd}tj}|j|ddƒdƒ|j|ddƒdƒ|j|ddƒdƒ|j|ddƒd    ƒ|j|d
d
ƒd ƒdS( Ns           The range of lines in file1 shall be written in the following format
           if the range contains two or more lines:
               "*** %d,%d ****
", <beginning line number>, <ending line number>
           and the following format otherwise:
               "*** %d ****
", <ending line number>
           The ending line number of an empty range shall be the number of the preceding line,
           or 0 if the range is at the start of the file.
 
           Next, the range of lines in file2 shall be written in the following format
           if the range contains two or more lines:
               "--- %d,%d ----
", <beginning line number>, <ending line number>
           and the following format otherwise:
               "--- %d ----
", <ending line number>
        it3iRjis4,5is4,6it0(Rt_format_range_contextR (RRlRm((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyttest_range_format_contextïs    (RRRhRiRnRr(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyR]És            cCs8dtj_tjtƒ}ttttt    t
|ƒdS(Ni( RR>t_default_prefixtdoctestt DocTestSuiteRRRR0RR](tDoctests((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyt    test_mains
  t__main__(Rttest.test_supportRRtunittestRtRVtTestCaseRRRR7R8R:R;R<R=R0R]RwR(((sY/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_difflib.pyt<module>s$    C?