[
https://issues.apache.org/jira/browse/LUCENENET-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780273#action_12780273
]
Digy commented on LUCENENET-288:
--------------------------------
Although it is not directly related with this bug, there is a funny issue about
floats (LUCENENET-95)
{code}
//try.cs
using System;
public class Dummy{
static void Main()
{
float f2 = 0.1f;
float fn = f2;
fn += 1;
fn -= 1;
Console.WriteLine("f2==fn -> " + (f2==fn).ToString()); fn = f2;
}
}
{code}
when compiled with
csc /optimize try.cs
output: true
but when compiled with
csc /debug try.cs
output: false
> Function.TestCustomScoreQuery
> -----------------------------
>
> Key: LUCENENET-288
> URL: https://issues.apache.org/jira/browse/LUCENENET-288
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Michael Garski
> Attachments: ExplanationComparison.txt, LUCENENET-288.patch
>
>
> Three of the tests in TestCustomScoreQuery are not passing due to the
> comparison between the explanation score and the hit score do not fall within
> the tolerance of +-0.00005f. Altering the tolerance to 0.0005f causes all of
> the tests to pass, so there appears to be a subtle issue in how the scores
> are being calculated.
> A similar test exists in 2.4 that passes with the tolerance of 0.00005f,
> which to me rules out floating point calculation differences.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.