Skip to content

Commit ebc1e07

Browse files
committed
[Test] Added edit distance test that includes deletion.
1 parent bf3deff commit ebc1e07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_edit_distance.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
class TestEditDistance(unittest.TestCase):
55

66
def test_edit_distance(self):
7-
87
self.assertEqual(['Substitute h', 'Insert l', 'Substitute l'], calculate_edit_distance('hello','teio'))
9-
8+
9+
def test_deletion_required(self):
10+
self.assertEqual(['Delete o', 'Delete n', 'Delete e', 'Delete '], calculate_edit_distance('two','one two'))

0 commit comments

Comments
 (0)