Commit 0ceb2cef authored by tsinghqs's avatar tsinghqs
Browse files

added my test cases

parent f367bb9b
Created on Feb 26, 2021
@author: tsinghqs
import unittest
from geeksforgeeks.algorithm import lcs
class lcsTest(unittest.TestCase):
def test(self):
#declare needed variables for testing
a = abcdefg
b = abedfeg
c = longestcommongsubstring
d = longerthatthis
#assert statements
self.assertEqual(lcs(a, b),2)
if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment