Example #1
0
 def test_lcs_similar(self):
     self.assertEquals(1, core.lcs("abbb", "aaaa"))
Example #2
0
 def test_lcs_different_double(self):
     self.assertEquals(1, core.lcs("ab", "ba"))
Example #3
0
 def test_lcs_different_lengths_b_short(self):
     self.assertEquals(1, core.lcs("dcba", "abc"))
Example #4
0
 def test_lcs_equal_double(self):
     self.assertEquals(2, core.lcs("ab", "ab"))
Example #5
0
 def test_lcs_different_single(self):
     self.assertEquals(0, core.lcs("a", "b"))
Example #6
0
 def test_lcs_equal_single(self):
     self.assertEquals(1, core.lcs("a", "a"))
Example #7
0
 def test_lcs_b_empty(self):
     self.assertEquals(0, core.lcs("a", ""))
Example #8
0
 def test_lcs_a_empty(self):
     self.assertEquals(0, core.lcs("", "a"))