lcs
should be a function.
testString: assert(typeof lcs == 'function');
- text: lcs("thisisatest", "testing123testing")
should return a string.
testString: assert(typeof lcs("thisisatest", "testing123testing") == 'string');
- text: lcs("thisisatest", "testing123testing")
should return "tsitest"
.
testString: assert.equal(lcs("thisisatest", "testing123testing"), "tsitest");
- text: lcs("ABCDGH", "AEDFHR")
should return "ADH"
.
testString: assert.equal(lcs("ABCDGH", "AEDFHR"), "ADH");
- text: lcs("AGGTAB", "GXTXAYB")
should return "GTAB"
.
testString: assert.equal(lcs("AGGTAB", "GXTXAYB"), "GTAB");
- text: lcs("BDACDB", "BDCB")
should return "BDCB"
.
testString: assert.equal(lcs("BDACDB", "BDCB"), "BDCB");
- text: lcs("ABAZDC", "BACBAD")
should return "ABAD"
.
testString: assert.equal(lcs("ABAZDC", "BACBAD"), "ABAD");
```