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