Modified longest_common_ssubsequence.py for successful doctests (#1332)

This commit is contained in:
Jigyasa G 2019-10-12 00:02:41 +05:30 committed by John Law
parent e678879892
commit 67291a5bce

View File

@ -76,6 +76,7 @@ if __name__ == "__main__":
expected_subseq = "GTAB"
ln, subseq = longest_common_subsequence(a, b)
assert expected_ln == ln
assert expected_subseq == subseq
print("len =", ln, ", sub-sequence =", subseq)
## print("len =", ln, ", sub-sequence =", subseq)
import doctest
doctest.testmod()