commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ki...@apache.org
Subject [text] Fix TODO tags in test
Date Fri, 17 Apr 2015 06:15:56 GMT
Repository: commons-text
Updated Branches:
  refs/heads/master 441159fb2 -> f2f24aa6f


Fix TODO tags in test


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/f2f24aa6
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/f2f24aa6
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/f2f24aa6

Branch: refs/heads/master
Commit: f2f24aa6f589401094f998cd27d677473d4ad4ac
Parents: 441159f
Author: Bruno P. Kinoshita <brunodepaulak@yahoo.com.br>
Authored: Fri Apr 17 18:15:33 2015 +1200
Committer: Bruno P. Kinoshita <brunodepaulak@yahoo.com.br>
Committed: Fri Apr 17 18:15:33 2015 +1200

----------------------------------------------------------------------
 .../text/similarity/ParameterizedEditDistanceFromTest.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/f2f24aa6/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
b/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
index 5a4d6d1..51f3e23 100644
--- a/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
+++ b/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
@@ -20,6 +20,7 @@ import static org.hamcrest.core.IsEqual.equalTo;
 import static org.junit.Assert.assertThat;
 
 import java.util.Arrays;
+import java.util.Locale;
 
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -54,8 +55,6 @@ public class ParameterizedEditDistanceFromTest<R> {
     public static Iterable<Object[]> parameters() {
         return Arrays.asList( new Object[][] {
 
-            /* TODO: When SANDBOX-491 is ready, add a few FuzzyScore tests. */
-
             { new HammingDistance(), "Sam I am.", "Ham I am.", 1 },
             { new HammingDistance(), "Japtheth, Ham, Shem", "Japtheth, HAM, Shem", 2 },
             { new HammingDistance(), "Hamming", "Hamming", 0 },
@@ -64,11 +63,14 @@ public class ParameterizedEditDistanceFromTest<R> {
             { new JaroWrinklerDistance(), "hippo", "elephant",  0.44 },
             { new JaroWrinklerDistance(), "hippo", "zzzzzzzz", 0.0 },
 
-            /* TODO: When SANDBOX-491 is ready, add a few limited/threshold tests. */
             { new LevenshteinDistance(), "Apache", "a patchy", 4 },
             { new LevenshteinDistance(), "go", "no go", 3 },
             { new LevenshteinDistance(), "go", "go", 0 },
 
+            { new LevenshteinDistance(4), "Apache", "a patchy", 4 },
+            { new LevenshteinDistance(4), "go", "no go", 3 },
+            { new LevenshteinDistance(0), "go", "go", 0 },
+
             {
                 new EditDistance<Boolean>() {
                     public Boolean apply(CharSequence left, CharSequence right) {


Mime
View raw message