Esempio n. 1
0
 def test_one_character_string(self):
     result = has_palindrome_permutation('a')
     self.assertTrue(result)
Esempio n. 2
0
 def test_no_permutation_with_even_number_of_chars(self):
     result = has_palindrome_permutation('aabbcd')
     self.assertFalse(result)
Esempio n. 3
0
 def test_empty_string(self):
     result = has_palindrome_permutation('')
     self.assertTrue(result)
Esempio n. 4
0
 def test_permutation_with_even_number_of_chars(self):
     result = has_palindrome_permutation('aabccbdd')
     self.assertTrue(result)