Exemple #1
0
 def testLCSPronouns(self):
     self.assertEqual(hw.LCS('this', 'that'), 'th')
Exemple #2
0
 def testLCSLetters(self):
     self.assertEqual(hw.LCS('abcdefgh', 'efgabcd'), 'abcd')
Exemple #3
0
 def testLCSDNA(self):
     self.assertEqual(hw.LCS('gattaca', 'tacgaacta'), 'gaaca')
Exemple #4
0
 def testLCSOnomatopoeia(self):
     self.assertEqual(hw.LCS('wow', 'whew'), 'ww')
Exemple #5
0
 def testLCSMonkeys(self):
     self.assertEqual(hw.LCS('human', 'chimp'), 'hm')