예제 #1
0
 def test_OverlapLength_SameStrings(self):
     assert_that(6, equal_to(base.OverlapLength('foobar', 'foobar')))
예제 #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')))
예제 #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')))
예제 #4
0
 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'))
예제 #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')))
예제 #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' ) ) )
예제 #14
0
 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('', ''))
예제 #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('', '')))
예제 #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'))
예제 #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')))
예제 #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' ) ) )