Example #1
0
 def test_4(self):
     first_word = "Levenshtien"
     second_word = "Frankenstein"
     result = d_l_distance(first_word, second_word)
     expected = 7
     self.assertEqual(expected, result)
Example #2
0
 def test_0_empty(self):
     first_word = ""
     second_word = ""
     result = d_l_distance(first_word, second_word)
     expected = 0
     self.assertEqual(expected, result)
Example #3
0
 def test_3(self):
     first_word = "ab"
     second_word = "aabs"
     result = d_l_distance(first_word, second_word)
     expected = 2
     self.assertEqual(expected, result)