lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Sale (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENENET-130) bug in unit test helper class Lucene.Net.Search.CheckHits
Date Thu, 17 Jul 2008 13:15:31 GMT

     [ https://issues.apache.org/jira/browse/LUCENENET-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Doug Sale resolved LUCENENET-130.
---------------------------------

    Resolution: Fixed

Fixed CheckHits bug:

System.Collections.ArrayList instances can't be judged equal by the Equals(Object o) method.
 (I believe it checks to see if they are the same instance.)

The fix was to Assert that each ArrayList has an equal length, and if so then Assert that
each element at the same position is equal.

Fixes the following unit test cases:

 Lucene.Net.Search.Spans.TestBasics.TestTerm
Lucene.Net.Search.Spans.TestBasics.TestTerm2
Lucene.Net.Search.Spans.TestBasics.TestPhrase
Lucene.Net.Search.Spans.TestBasics.TestPhrase2
Lucene.Net.Search.Spans.TestBasics.TestBoolean
Lucene.Net.Search.Spans.TestBasics.TestBoolean2
Lucene.Net.Search.Spans.TestBasics.TestSpanNearExact
Lucene.Net.Search.Spans.TestBasics.TestSpanNearUnordered
Lucene.Net.Search.Spans.TestBasics.TestSpanNearOrdered
Lucene.Net.Search.Spans.TestBasics.TestSpanNot
Lucene.Net.Search.Spans.TestBasics.TestSpanWithMultipleNotSingle
Lucene.Net.Search.Spans.TestBasics.TestSpanWithMultipleNotMany
Lucene.Net.Search.Spans.TestBasics.TestNpeInSpanNearWithSpanNot
Lucene.Net.Search.Spans.TestBasics.TestNpeInSpanNearInSpanFirstInSpanNot
Lucene.Net.Search.Spans.TestBasics.TestSpanFirst
Lucene.Net.Search.Spans.TestBasics.TestSpanOr
Lucene.Net.Search.Spans.TestBasics.TestSpanExactNested
Lucene.Net.Search.Spans.TestBasics.TestSpanNearOr
Lucene.Net.Search.Spans.TestBasics.TestSpanComplex1

Lucene.Net.Search.Spans.TestNearSpansOrdered.TestSpanNearQuery

Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrdered01
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual01
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual02
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual03
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual04
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual11
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual12
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual13
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual14
Lucene.Net.Search.Spans.TestSpans.TestSpanNearOrderedEqual15


> bug in unit test helper class Lucene.Net.Search.CheckHits
> ---------------------------------------------------------
>
>                 Key: LUCENENET-130
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-130
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Doug Sale
>            Priority: Minor
>         Attachments: CheckHits.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Attempts to compare 2 System.Collections.ArrayList instances via Assert.AreEquals(...)
> C# Collections don't implement a reasonable Equals(Object o) method

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message