コード例 #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
ファイル: base_test.py プロジェクト: CorinnaBuerger/dotfiles
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
ファイル: base_test.py プロジェクト: Evans9610/vimrc
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
ファイル: base_test.py プロジェクト: Evans9610/vimrc
def OverlapLength_SameStrings_test():
    eq_(6, base.OverlapLength('foobar', 'foobar'))
コード例 #10
0
ファイル: base_test.py プロジェクト: Evans9610/vimrc
def OverlapLength_Substring_test():
    eq_(6, base.OverlapLength('foobar', 'foobarzoo'))
    eq_(6, base.OverlapLength('zoofoobar', 'foobar'))
コード例 #11
0
ファイル: base_test.py プロジェクト: CorinnaBuerger/dotfiles
def OverlapLength_LongestOverlap_test():
  assert_that( 7, equal_to( base.OverlapLength( 'bar foo foo',
                                                'foo foo bar' ) ) )
コード例 #12
0
ファイル: base_test.py プロジェクト: CorinnaBuerger/dotfiles
def OverlapLength_SameStrings_test():
  assert_that( 6, equal_to( base.OverlapLength( 'foobar', 'foobar' ) ) )
コード例 #13
0
ファイル: base_test.py プロジェクト: CorinnaBuerger/dotfiles
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
ファイル: base_test.py プロジェクト: Evans9610/vimrc
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
ファイル: base_test.py プロジェクト: Evans9610/vimrc
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
ファイル: base_test.py プロジェクト: CorinnaBuerger/dotfiles
def OverlapLength_Basic_test():
  assert_that( 3, equal_to( base.OverlapLength( 'foo bar', 'bar zoo' ) ) )
  assert_that( 3, equal_to( base.OverlapLength( 'foobar', 'barzoo' ) ) )