Levenshtein { public static int distance(int[] str1, int[] str2){ return distance(str1, str2, DEFAULT_CC); }  static int distance(int[] str1, int[] str2); static int distance(String str1, String str2); static int distance(String str1, String str2, CostCalculator c); static int distance(int[] str1, int[] str2, CostCalculator c); static CostCalculator DEFAULT_CC; }
@Test public void test1(){ String str1 = "Test String1"; String str2 = "Test String2"; double res = Levenshtein.distance(str1,str2); Asserts.assertEquals(res, 1); }
@Test public void test2(){ String str1 = "Array"; String str2 = "String"; double res = Levenshtein.distance(str1,str2); Asserts.assertEquals(res,5); }
@Test public void test3(){ String str1 = "kitten"; String str2 = "sitting"; double res = Levenshtein.distance(str1,str2); Asserts.assertEquals(res,3); }