lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe (JIRA) <j...@apache.org>
Subject [jira] [Created] (SOLR-4111) Context-Sensitive SpellCheck Collation is not really being tested on IndexBasedSpellChecker
Date Fri, 23 Nov 2012 19:00:58 GMT
Tomás Fernández Löbbe created SOLR-4111:
-------------------------------------------

             Summary: Context-Sensitive SpellCheck Collation is not really being tested on
IndexBasedSpellChecker
                 Key: SOLR-4111
                 URL: https://issues.apache.org/jira/browse/SOLR-4111
             Project: Solr
          Issue Type: Bug
    Affects Versions: 4.0
            Reporter: Tomás Fernández Löbbe
            Priority: Trivial
         Attachments: SOLR-4111.patch

Looks like a typo in the code. SpellCheckCollatorTest.testContextSensitiveCollate() has:

{code:java}
    //                     DirectSolrSpellChecker   IndexBasedSpellChecker
    String[] dictionary = {"direct",                "default_teststop" };
    for(int i=0 ; i<1 ; i++) {
    ... test stuff using dictionary[i]...
    }
{code}
where it should be

{code:java}
    //                     DirectSolrSpellChecker   IndexBasedSpellChecker
    String[] dictionary = {"direct",                "default_teststop" };
    for(int i=0 ; i<=1 ; i++) {
    ... test stuff using dictionary[i]...
    }
{code}

due to this, the tests are not being run with a IndexBasedSpellChecker.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message