示例#1
0
 def test_list_3(self):
     self.assertEqual(
         match_ends(['slips', 'runs', 'trots', 'walks', 'canters']), 1)
示例#2
0
 def test_list_1(self):
     self.assertEqual(match_ends(['cat', 'dog', 'parrot', 'hamster']), 0)
示例#3
0
 def test_list_2(self):
     self.assertEqual(match_ends(['', 'a', 'b', 'c']), 0)
示例#4
0
def test_list_3():
    assert_equal(match_ends(['cat','dog','mom','dad']), 2)
示例#5
0
def test_list_4():
    assert_equal(match_ends(['dad','sings','songs','sometimes','aa']), 5)
示例#6
0
def test_list_2():
    assert_equal(match_ends(['pop', 'jump', 'hop', 'skip', 'b']), 1)
示例#7
0
def test_list_2():
    assert_equal(match_ends(['pop','jump','hop','skip','b']), 1)
示例#8
0
 def test_list_4(self):
     self.assertEqual(match_ends(['pup','pip','par','pat']),2)
示例#9
0
 def test_list_5(self):
     self.assertEqual(match_ends(['mom','mum','dad','sis','aa']),5)
示例#10
0
 def test_list_2(self):
     self.assertEqual(match_ends(['','a','b','c']),0)
示例#11
0
 def test_list_3(self):
     self.assertEqual(match_ends(['slips',
                     'runs','trots','walks','canters']),1)
示例#12
0
 def test_list_1(self):
     self.assertEqual(match_ends(['cat','dog','parrot','hamster']),0)
示例#13
0
def test_list_4():
    assert_equal(match_ends(['dad', 'sings', 'songs', 'sometimes', 'aa']), 5)
示例#14
0
def test_list_3():
    assert_equal(match_ends(['cat', 'dog', 'mom', 'dad']), 2)
示例#15
0
 def test_list_4(self):
     self.assertEqual(match_ends(['pup', 'pip', 'par', 'pat']), 2)
示例#16
0
def test_list_1():
    assert_equal(match_ends(['','a','cat','dog','hat']), 0)
示例#17
0
 def test_list_5(self):
     self.assertEqual(match_ends(['mom', 'mum', 'dad', 'sis', 'aa']), 5)
示例#18
0
def test_list_1():
    assert_equal(match_ends(['', 'a', 'cat', 'dog', 'hat']), 0)