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