lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENENET-59) QueryUtils has some invalid Asserts
Date Wed, 15 Aug 2007 20:35:30 GMT

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

Jeff updated LUCENENET-59:
--------------------------

    Attachment: QueryUtils.patch3

Here is a new patch that only checks Query.ToString() since you can't Assert a Query. GetHashCode()
has been left in. additional patches will trim the arraylist higher up in the tests.. once
the Arraylist TrimToSize() has been performed they pass the tests.

The reason why CheckEqual and CheckUnequal hashes are failing is because when you clone an
arraylist it sets the capacity to the length instead of keeping the capacity. This makes it
invalid when comparing a hash.

> QueryUtils has some invalid Asserts
> -----------------------------------
>
>                 Key: LUCENENET-59
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-59
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Jeff
>            Priority: Minor
>         Attachments: QueryUtils.patch, QueryUtils.patch2, QueryUtils.patch3
>
>
> NUnit tests are failing because of bad Asserts in CheckEqual(Query q1, Query q2) and
CheckUnequal(Query q1, Query q2).

-- 
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