aboutsummaryrefslogtreecommitdiff
path: root/challenge-099/tyler-wardhaugh/python/test_ch2.py
diff options
context:
space:
mode:
authorTyler Wardhaugh <tyler.wardhaugh@gmail.com>2021-02-10 09:57:23 -0800
committerTyler Wardhaugh <tyler.wardhaugh@gmail.com>2021-02-12 09:31:25 -0800
commitdc48cb570de7841f7af41ba6e81ef64007c8059e (patch)
treedd2217c742345d56926d8f57be3bcf51a40f3dfb /challenge-099/tyler-wardhaugh/python/test_ch2.py
parent49cab280781c426e997c691635fce821977d8439 (diff)
downloadperlweeklychallenge-club-dc48cb570de7841f7af41ba6e81ef64007c8059e.tar.gz
perlweeklychallenge-club-dc48cb570de7841f7af41ba6e81ef64007c8059e.tar.bz2
perlweeklychallenge-club-dc48cb570de7841f7af41ba6e81ef64007c8059e.zip
Ch99 (Python): Tasks 1 & 2
Diffstat (limited to 'challenge-099/tyler-wardhaugh/python/test_ch2.py')
-rwxr-xr-xchallenge-099/tyler-wardhaugh/python/test_ch2.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/challenge-099/tyler-wardhaugh/python/test_ch2.py b/challenge-099/tyler-wardhaugh/python/test_ch2.py
new file mode 100755
index 0000000000..968a4fe8e4
--- /dev/null
+++ b/challenge-099/tyler-wardhaugh/python/test_ch2.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import unittest
+from ch2 import unique_subsequences
+
+class TestTask2(unittest.TestCase):
+
+
+ def test_example_cases(self):
+ self.assertEqual(5, unique_subsequences('littleit', 'lit'))
+ self.assertEqual(3, unique_subsequences('london', 'lon'))
+
+
+if __name__ == '__main__':
+ unittest.main()