def test3(self): actual = strings.longest_common_subsequence('cacbacabc', 'ccbacabdadc') self.assertEqual(actual, set(['ccbacabc']))
def test1(self): actual = strings.longest_common_subsequence('abab', 'baba') self.assertEqual(actual, set(['aba', 'bab']))
def test2(self): actual = strings.longest_common_subsequence('xmjyaux', 'mzjawxu') self.assertEqual(actual, set(['mjau', 'mjax']))
def testEmptyStrings(self): actual = strings.longest_common_subsequence('','') self.assertEqual(actual, set())