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