We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b413fcc commit f5e7915Copy full SHA for f5e7915
tests/test_string.py
@@ -4,6 +4,7 @@
4
anagram,
5
isogram,
6
pangram,
7
+ manacher_algorithm,
8
palindrome)
9
10
class TestAnagram(unittest.TestCase):
@@ -25,5 +26,9 @@ def test_palindrome(self):
25
26
self.assertTrue(palindrome.is_palindrome('madam'))
27
self.assertFalse(palindrome.is_palindrome('eleven'))
28
29
+class TestManacherAlgorithm(unittest.TestCase):
30
+ def test_manacher_algorithm(self):
31
+ self.assertEqual(manacher_algorithm.manacher('babcbabcbaccba'), 'abcbabcba')
32
+
33
if __name__ == '__main__':
34
unittest.main()
0 commit comments