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'))
def OverlapLength_LongestOverlap_test(): eq_(7, base.OverlapLength('bar foo foo', 'foo foo bar'))
def OverlapLength_EmptyInput_test(): eq_(0, base.OverlapLength('', 'goobar')) eq_(0, base.OverlapLength('foobar', '')) eq_(0, base.OverlapLength('', ''))
def OverlapLength_Substring_test(): eq_(6, base.OverlapLength('foobar', 'foobarzoo')) eq_(6, base.OverlapLength('zoofoobar', 'foobar'))
def OverlapLength_SameStrings_test(): eq_(6, base.OverlapLength('foobar', 'foobar'))
def OverlapLength_OneCharOverlap_test(): eq_(1, base.OverlapLength('foo b', 'b zoo'))
def OverlapLength_BasicWithUnicode_test(): eq_(3, base.OverlapLength(u'bar fäö', u'fäö bar')) eq_(3, base.OverlapLength(u'zoofäö', u'fäözoo'))
def OverlapLength_Basic_test(): eq_(3, base.OverlapLength('foo bar', 'bar zoo')) eq_(3, base.OverlapLength('foobar', 'barzoo'))