You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jk...@apache.org on 2011/12/21 05:41:56 UTC

svn commit: r1221610 - /incubator/opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/namefind/DictionaryNameFinderTest.java

Author: jkosin
Date: Wed Dec 21 04:41:56 2011
New Revision: 1221610

URL: http://svn.apache.org/viewvc?rev=1221610&view=rev
Log:
OPENNLP-415: Added a test for the case sensitivity example

Modified:
    incubator/opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/namefind/DictionaryNameFinderTest.java

Modified: incubator/opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/namefind/DictionaryNameFinderTest.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/namefind/DictionaryNameFinderTest.java?rev=1221610&r1=1221609&r2=1221610&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/namefind/DictionaryNameFinderTest.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/namefind/DictionaryNameFinderTest.java Wed Dec 21 04:41:56 2011
@@ -113,4 +113,14 @@ public class DictionaryNameFinderTest{
     assertTrue(names.length == 1);
     assertTrue(names[0].getStart() == 3 && names[0].getEnd() == 5);
   }
+
+  @Test
+  public void testCaseSensitivity() {
+    String sentence[] = {"a", "b", "c", "vanessa", "williams"};
+
+    Span names[] = mNameFinder.find(sentence);
+
+    assertTrue(names.length == 1);
+    assertTrue(names[0].getStart() == 3 && names[0].getEnd() == 5);
+  }
 }
\ No newline at end of file