def test_lcs_similar(self): self.assertEquals(1, core.lcs("abbb", "aaaa"))
def test_lcs_different_double(self): self.assertEquals(1, core.lcs("ab", "ba"))
def test_lcs_different_lengths_b_short(self): self.assertEquals(1, core.lcs("dcba", "abc"))
def test_lcs_equal_double(self): self.assertEquals(2, core.lcs("ab", "ab"))
def test_lcs_different_single(self): self.assertEquals(0, core.lcs("a", "b"))
def test_lcs_equal_single(self): self.assertEquals(1, core.lcs("a", "a"))
def test_lcs_b_empty(self): self.assertEquals(0, core.lcs("a", ""))
def test_lcs_a_empty(self): self.assertEquals(0, core.lcs("", "a"))