%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_difflib.pyc |
ó Nêáac @ s# d d l Z d d l m Z m Z d d l Z d d l Z d d l Z d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d Z d Z d Z d Z d Z d Z d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e d k re ƒ n d S( iÿÿÿÿN( t run_unittestt findfilet TestWithAsciic B s e Z d „ Z d „ Z RS( c C sÍ t j d d d d d d ƒ } | j | j ƒ d d d ƒ| j t | j ƒ ƒ d d g ƒ t j d d d d d d d d ƒ } | j | j ƒ d d d ƒ| j t | j ƒ ƒ d d d g ƒ d S( Nt bid t ag×£p= ×ï?t placesi t inserti i t equalie i2 i3 ( R i i i i ( R i id i ie ( R i i2 i i2 ( R i2 i2 i2 i3 ( R i2 id i3 ie ( t difflibt SequenceMatchert Nonet assertAlmostEqualt ratiot assertEqualt listt get_opcodes( t selft sm( ( s- /usr/local/lib/python2.7/test/test_difflib.pyt test_one_insert s ! )c C sv t j d d d d d d d d d d ƒ } | j | j ƒ d d d ƒ| j t | j ƒ ƒ d d d g ƒ d S( NR i( t cR g+‡ÙÎï?R i R i t deletei) iQ iP ( R i i( i i( ( R i( i) i( i( ( R i) iQ i( iP ( R R R R R R R R ( R R ( ( s- /usr/local/lib/python2.7/test/test_difflib.pyt test_one_delete s 1( t __name__t __module__R R ( ( ( s- /usr/local/lib/python2.7/test/test_difflib.pyR s t TestAutojunkc B s e Z d Z d „ Z RS( s- Tests for the autojunk parameter added in 2.7c C s„ d d } d d d } t j d | | ƒ } | j | j ƒ d d d ƒt j d | | d t ƒ} | j | j ƒ d d d ƒd S( NR iÈ R i R i t autojunkgìQ¸…ëï?( R R R R R t False( R t seq1t seq2R ( ( s- /usr/local/lib/python2.7/test/test_difflib.pyt# test_one_insert_homogenous_sequence! s ( R R t __doc__R ( ( ( s- /usr/local/lib/python2.7/test/test_difflib.pyR s t TestSFbugsc B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c C s[ t j d g g ƒ } | j | j ƒ d ƒ | j | j ƒ d ƒ | j | j ƒ d ƒ d S( Ni ( R R R R R t quick_ratiot real_quick_ratio( R t s( ( s- /usr/local/lib/python2.7/test/test_difflib.pyt test_ratio_for_null_seqn0 s c C sW t j d g g ƒ j ƒ } | j t | j ƒ t j g g ƒ } | j t | j ƒ 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.7/test/test_difflib.pyt test_comparing_empty_lists7 s c C sv t j d d d ƒ } | j ƒ } | j ƒ } | j | d j d ƒ | j | d j d ƒ | j | d j d ƒ d S( Nt abxcdt abcdi i i ( R R R t get_matching_blocksR t size( R R"