Exemplo n.º 1
0
 def test_palin_1(self):
     string, expected = "A man, a plan, a canal: Panama", True
     self.assertEqual(palin.palindrome(string), expected)
Exemplo n.º 2
0
 def test_palin_4(self):
     string, expected = "", True
     self.assertEqual(palin.palindrome(string), expected)
Exemplo n.º 3
0
 def test_palin_5(self):
     string, expected = "Don't nod.", True
     self.assertEqual(palin.palindrome(string), expected)
Exemplo n.º 4
0
 def test_palin_2(self):
     string, expected = "race a car", False
     self.assertEqual(palin.palindrome(string), expected)