Exemple #1
0
 public void TestNone(string text1, string text2, int dist)
 {
     Assert.Equal(dist, EditDistance.MinEditDistance(text1, text2, Algorithms.None));
 }
Exemple #2
0
 public void TestHamming(string text1, string text2, int dist)
 {
     Assert.Equal(dist, EditDistance.MinEditDistance(text1, text2, Algorithms.Hamming));
 }
Exemple #3
0
 public void TestDemerauLevenshtain(string text1, string text2, int dist)
 {
     Assert.Equal(dist, EditDistance.MinEditDistance(text1, text2, Algorithms.DemerauLevenshtein));
 }
Exemple #4
0
 public void TestLevenshtain(string text1, string text2, int dist)
 {
     Assert.Equal(dist, EditDistance.MinEditDistance(text1, text2));
 }