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