예제 #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)