You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jd...@apache.org on 2012/11/23 20:24:55 UTC

svn commit: r1413036 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java

Author: jdyer
Date: Fri Nov 23 19:24:54 2012
New Revision: 1413036

URL: http://svn.apache.org/viewvc?rev=1413036&view=rev
Log:
SOLR-4111: test fix for SpellCheckCollatorTest#testContextSensitiveCollate

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1413036&r1=1413035&r2=1413036&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Fri Nov 23 19:24:54 2012
@@ -279,6 +279,10 @@ Other Changes
 * SOLR-1916: DIH to not use Lucene-forbidden Java APIs 
   (default encoding, locale, etc.) (James Dyer, Robert Muir)
 
+* SOLR-4111: SpellCheckCollatorTest#testContextSensitiveCollate to test against
+  both DirectSolrSpellChecker & IndexBasedSpellChecker
+  (Tomás Fernández Löbbe via James Dyer)
+
 ==================  4.0.0 ==================
 
 Versions of Major Components

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java?rev=1413036&r1=1413035&r2=1413036&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java Fri Nov 23 19:24:54 2012
@@ -376,7 +376,7 @@ public class SpellCheckCollatorTest exte
   public void testContextSensitiveCollate() throws Exception {
     //                     DirectSolrSpellChecker   IndexBasedSpellChecker
     String[] dictionary = {"direct",                "default_teststop" };
-    for(int i=0 ; i<1 ; i++) {
+    for(int i=0 ; i<=1 ; i++) {
       assertQ(
         req(
           "q", "teststop:(flew AND form AND heathrow)",