aboutsummaryrefslogtreecommitdiff
path: root/challenge-096/tyler-wardhaugh/python/test_ch2.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-096/tyler-wardhaugh/python/test_ch2.py')
-rwxr-xr-xchallenge-096/tyler-wardhaugh/python/test_ch2.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/challenge-096/tyler-wardhaugh/python/test_ch2.py b/challenge-096/tyler-wardhaugh/python/test_ch2.py
new file mode 100755
index 0000000000..4341cbded4
--- /dev/null
+++ b/challenge-096/tyler-wardhaugh/python/test_ch2.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import unittest
+from ch2 import edit_distance
+
+class TestTask2(unittest.TestCase):
+
+
+ def test_example_cases(self):
+ self.assertEqual(3, edit_distance("kitten", "sitting"))
+ self.assertEqual(2, edit_distance("sunday", "monday"))
+
+
+if __name__ == '__main__':
+ unittest.main()