lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <>
Subject [jira] Resolved: (LUCENENET-364) Workaround for a Mono float/Single parsing issue
Date Sat, 01 May 2010 21:57:57 GMT


Digy resolved LUCENENET-364.

      Assignee: Digy
    Resolution: Fixed

We have made similar changes previously. 
.NET: EXPLAIN_SCORE_TOLERANCE_DELTA = 0.00025f;   // {{See: LUCENENET-288}} Intentional diversion
from Java Lucene per above comment
So, I think It's acceptable.

I changed TestSort.cs


> Workaround for a Mono float/Single parsing issue
> ------------------------------------------------
>                 Key: LUCENENET-364
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Improvement
>         Environment: Mono 2.6.x
>            Reporter: Robert Jordan
>            Assignee: Digy
>         Attachments: TestSort.diff
> Mono is not able to parse values greater or equal to Single.MaxValues correctly, e.g.:
> Single.Parse(Single.MaxValue.ToString())  throws an OverflowException.
> Since Test/Search/TestSort.cs is using such a value, all of its tests are failing.
> I'm aware that this issue must be fixed in Mono (it's a known issue), but since TestSort
is not about testing foat's accuracy, I'm attaching a patch the lets the tests pass on Mono.
Please take it into consideration.

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

View raw message