Beispiel #1
0
 def test_one_char_add(self):
     self.assertEqual(isOneAway("", "a"), True)
Beispiel #2
0
 def test_one_char_remove(self):
     self.assertEqual(isOneAway("a", ""), True)
Beispiel #3
0
 def test_two_char_away_remove(self):
     self.assertEqual(isOneAway("ab", ""), False)
Beispiel #4
0
 def test_two_char_away_replace(self):
     self.assertEqual(isOneAway("av", "cd"), False)
Beispiel #5
0
 def test_two_char_away_add(self):
     self.assertEqual(isOneAway("", "aa"), False)
Beispiel #6
0
 def test_two_char_replace(self):
     self.assertEqual(isOneAway("ac", "ab"), True)
Beispiel #7
0
 def test_two_char_remove(self):
     self.assertEqual(isOneAway("ab", "a"), True)
Beispiel #8
0
 def test_two_char_add(self):
     self.assertEqual(isOneAway("a", "ab"), True)
Beispiel #9
0
 def test_one_char_replace(self):
     self.assertEqual(isOneAway("a", "v"), True)