def test_OverlapLength_SameStrings(self):
     assert_that(6, equal_to(base.OverlapLength('foobar', 'foobar')))
 def test_OverlapLength_Substring(self):
     assert_that(6, equal_to(base.OverlapLength('foobar', 'foobarzoo')))
     assert_that(6, equal_to(base.OverlapLength('zoofoobar', 'foobar')))
 def test_OverlapLength_BasicWithUnicode(self):
     assert_that(3, equal_to(base.OverlapLength('bar fäö', 'fäö bar')))
     assert_that(3, equal_to(base.OverlapLength('zoofäö', 'fäözoo')))
 def test_OverlapLength_OneCharOverlap(self):
     assert_that(1, equal_to(base.OverlapLength('foo b', 'b zoo')))
示例#5
0
def OverlapLength_BasicWithUnicode_test():
    eq_(3, base.OverlapLength(u'bar fäö', u'fäö bar'))
    eq_(3, base.OverlapLength(u'zoofäö', u'fäözoo'))
示例#6
0
def OverlapLength_BasicWithUnicode_test():
  assert_that( 3, equal_to( base.OverlapLength( u'bar fäö', u'fäö bar' ) ) )
  assert_that( 3, equal_to( base.OverlapLength( u'zoofäö', u'fäözoo' ) ) )
示例#7
0
def OverlapLength_LongestOverlap_test():
    eq_(7, base.OverlapLength('bar foo foo', 'foo foo bar'))
 def test_OverlapLength_NoOverlap(self):
     assert_that(0, equal_to(base.OverlapLength('foobar', 'goobar')))
     assert_that(0, equal_to(base.OverlapLength('foobar', '(^($@#$#@')))
     assert_that(0,
                 equal_to(base.OverlapLength('foo bar zoo', 'foo zoo bar')))
示例#9
0
def OverlapLength_SameStrings_test():
    eq_(6, base.OverlapLength('foobar', 'foobar'))
示例#10
0
def OverlapLength_Substring_test():
    eq_(6, base.OverlapLength('foobar', 'foobarzoo'))
    eq_(6, base.OverlapLength('zoofoobar', 'foobar'))
示例#11
0
def OverlapLength_LongestOverlap_test():
  assert_that( 7, equal_to( base.OverlapLength( 'bar foo foo',
                                                'foo foo bar' ) ) )
示例#12
0
def OverlapLength_SameStrings_test():
  assert_that( 6, equal_to( base.OverlapLength( 'foobar', 'foobar' ) ) )
示例#13
0
def OverlapLength_OneCharOverlap_test():
  assert_that( 1, equal_to( base.OverlapLength( 'foo b', 'b zoo' ) ) )
 def test_OverlapLength_LongestOverlap(self):
     assert_that(7,
                 equal_to(base.OverlapLength('bar foo foo', 'foo foo bar')))
示例#15
0
def OverlapLength_EmptyInput_test():
    eq_(0, base.OverlapLength('', 'goobar'))
    eq_(0, base.OverlapLength('foobar', ''))
    eq_(0, base.OverlapLength('', ''))
 def test_OverlapLength_EmptyInput(self):
     assert_that(0, equal_to(base.OverlapLength('', 'goobar')))
     assert_that(0, equal_to(base.OverlapLength('foobar', '')))
     assert_that(0, equal_to(base.OverlapLength('', '')))
示例#17
0
def OverlapLength_NoOverlap_test():
    eq_(0, base.OverlapLength('foobar', 'goobar'))
    eq_(0, base.OverlapLength('foobar', '(^($@#$#@'))
    eq_(0, base.OverlapLength('foo bar zoo', 'foo zoo bar'))
示例#18
0
def OverlapLength_Basic_test():
    eq_(3, base.OverlapLength('foo bar', 'bar zoo'))
    eq_(3, base.OverlapLength('foobar', 'barzoo'))
 def test_OverlapLength_Basic(self):
     assert_that(3, equal_to(base.OverlapLength('foo bar', 'bar zoo')))
     assert_that(3, equal_to(base.OverlapLength('foobar', 'barzoo')))
示例#20
0
def OverlapLength_OneCharOverlap_test():
    eq_(1, base.OverlapLength('foo b', 'b zoo'))
示例#21
0
def OverlapLength_Basic_test():
  assert_that( 3, equal_to( base.OverlapLength( 'foo bar', 'bar zoo' ) ) )
  assert_that( 3, equal_to( base.OverlapLength( 'foobar', 'barzoo' ) ) )