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