Example #1
0
 def test_empty(self):
     self.assertIs(palindrome(''),False)
Example #2
0
 def test_emoji(self):
     self.assertIs(palindrome('(.)_(.)'), False)
Example #3
0
 def test_inverted_smiley(self):
     self.assertIs(palindrome('|_^_|'), False)
Example #4
0
 def test_nights(self):
     self.assertTrue(palindrome('1001N? 1001!'))
Example #5
0
 def test_nonprint(self):
     self.assertIs(palindrome('\n1001 = 1001'),True)
Example #6
0
 def test_seven(self):
     self.assertIs(palindrome('seven'), False)
Example #7
0
 def test_elba(self):
     self.assertTrue(palindrome("Able was I, ere I saw Elba 😁"))
Example #8
0
 def test_panama(self):
     self.assertTrue(palindrome('A Man, A Plan, a Canal: Panama!'))
Example #9
0
 def test_oxo(self):
     self.assertTrue(palindrome('oxo'))
Example #10
0
 def test_nonprint(self):
     self.assertIs(palindrome('race\ncar'), True)