Пример #1
0
 def test_case_6(self):
     word1 = 'dinitrophenylhydrazine'
     word2 = 'benzalphenylhydrazone'
     e = EditDistance()
     result = e.calculateNumberOfChanges(word1, word2)
     self.assertEqual(result, 7)
Пример #2
0
 def test_case_1(self):
     word1 = 'abcd'
     word2 = 'abdd'
     e = EditDistance()
     result = e.calculateNumberOfChanges(word1, word2)
     self.assertEqual(result, 1)
Пример #3
0
 def test_case_5(self):
     word1 = 'intention'
     word2 = 'execution'
     e = EditDistance()
     result = e.calculateNumberOfChanges(word1, word2)
     self.assertEqual(result, 5)