Exemplo n.º 1
0
 def test_OverlapLength_SameStrings(self):
     assert_that(6, equal_to(base.OverlapLength('foobar', 'foobar')))
Exemplo n.º 2
0
 def test_OverlapLength_Substring(self):
     assert_that(6, equal_to(base.OverlapLength('foobar', 'foobarzoo')))
     assert_that(6, equal_to(base.OverlapLength('zoofoobar', 'foobar')))
Exemplo n.º 3
0
 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')))
Exemplo n.º 4
0
 def test_OverlapLength_OneCharOverlap(self):
     assert_that(1, equal_to(base.OverlapLength('foo b', 'b zoo')))
Exemplo n.º 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'))
Exemplo n.º 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' ) ) )
Exemplo n.º 7
0
def OverlapLength_LongestOverlap_test():
    eq_(7, base.OverlapLength('bar foo foo', 'foo foo bar'))
Exemplo n.º 8
0
 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')))
Exemplo n.º 9
0
def OverlapLength_SameStrings_test():
    eq_(6, base.OverlapLength('foobar', 'foobar'))
Exemplo n.º 10
0
def OverlapLength_Substring_test():
    eq_(6, base.OverlapLength('foobar', 'foobarzoo'))
    eq_(6, base.OverlapLength('zoofoobar', 'foobar'))
Exemplo n.º 11
0
def OverlapLength_LongestOverlap_test():
  assert_that( 7, equal_to( base.OverlapLength( 'bar foo foo',
                                                'foo foo bar' ) ) )
Exemplo n.º 12
0
def OverlapLength_SameStrings_test():
  assert_that( 6, equal_to( base.OverlapLength( 'foobar', 'foobar' ) ) )
Exemplo n.º 13
0
def OverlapLength_OneCharOverlap_test():
  assert_that( 1, equal_to( base.OverlapLength( 'foo b', 'b zoo' ) ) )
Exemplo n.º 14
0
 def test_OverlapLength_LongestOverlap(self):
     assert_that(7,
                 equal_to(base.OverlapLength('bar foo foo', 'foo foo bar')))
Exemplo n.º 15
0
def OverlapLength_EmptyInput_test():
    eq_(0, base.OverlapLength('', 'goobar'))
    eq_(0, base.OverlapLength('foobar', ''))
    eq_(0, base.OverlapLength('', ''))
Exemplo n.º 16
0
 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('', '')))
Exemplo n.º 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'))
Exemplo n.º 18
0
def OverlapLength_Basic_test():
    eq_(3, base.OverlapLength('foo bar', 'bar zoo'))
    eq_(3, base.OverlapLength('foobar', 'barzoo'))
Exemplo n.º 19
0
 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')))
Exemplo n.º 20
0
def OverlapLength_OneCharOverlap_test():
    eq_(1, base.OverlapLength('foo b', 'b zoo'))
Exemplo n.º 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' ) ) )