From 3bb8a5e877a59658b8a161ad5808eb05361fa1d7 Mon Sep 17 00:00:00 2001 From: James Dyer Date: Fri, 23 Nov 2012 19:24:54 +0000 Subject: [PATCH] SOLR-4111: test fix for SpellCheckCollatorTest#testContextSensitiveCollate git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1413036 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 4 ++++ .../test/org/apache/solr/spelling/SpellCheckCollatorTest.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 71797aeef5a..be074ccfdc1 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -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 diff --git a/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java b/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java index ac7b19efa56..aad834bc58b 100644 --- a/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java +++ b/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java @@ -376,7 +376,7 @@ public class SpellCheckCollatorTest extends SolrTestCaseJ4 { 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)",