diff options
| author | Tyler Wardhaugh <tyler.wardhaugh@gmail.com> | 2021-01-20 10:05:39 -0800 |
|---|---|---|
| committer | Tyler Wardhaugh <tyler.wardhaugh@gmail.com> | 2021-01-20 13:21:03 -0800 |
| commit | e788f447e46760cc68c99a605e1d0b0820184304 (patch) | |
| tree | d6da51e83c615812aace0d9333474cce382eb649 /challenge-096/tyler-wardhaugh/python/test_ch2.py | |
| parent | cfb51189b52bda76f0536d7674e7247b15b9f09b (diff) | |
| download | perlweeklychallenge-club-e788f447e46760cc68c99a605e1d0b0820184304.tar.gz perlweeklychallenge-club-e788f447e46760cc68c99a605e1d0b0820184304.tar.bz2 perlweeklychallenge-club-e788f447e46760cc68c99a605e1d0b0820184304.zip | |
Ch96 (Python): Tasks 1 & 2
Diffstat (limited to 'challenge-096/tyler-wardhaugh/python/test_ch2.py')
| -rwxr-xr-x | challenge-096/tyler-wardhaugh/python/test_ch2.py | 15 |
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() |
