예제 #1
0
 def test_wrong_length(self):
     self.assertEqual(palindrome5('racecar driver doing a pullup'), [])
예제 #2
0
 def test_partial(self):
     self.assertEqual(palindrome5('what were you referring to?'), [])
예제 #3
0
 def test_multiple(self):
     self.assertEqual(
         palindrome5('which level are you and what are your stats?'),
         ['level', 'stats'])
예제 #4
0
 def test_kayak(self):
     self.assertEqual(palindrome5('kayak'), ['kayak'])
 def test_wrong_length(self):
     self.assertEqual(palindrome5('racecar driver doing a pullup'), [])
 def test_multiple(self):
     self.assertEqual(
         palindrome5('which level are you and what are your stats?'),
         ['level', 'stats']
     )
 def test_partial(self):
     self.assertEqual(palindrome5('what were you referring to?'), [])
 def test_kayak(self):
     self.assertEqual(palindrome5('kayak'), ['kayak'])