[
https://issues.apache.org/jira/browse/LUCENENET-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619349#action_12619349
]
Digy commented on LUCENENET-95:
-------------------------------
Just to remind
{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 compiling with
csc /optimize try.cs
output: *true*
but when compiling with
csc /debug try.cs
output: *false*
{color:red}
About *csc*
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
{color}
DIGY
> Nunite test for
> Search.TestDisjunctionMaxQuery.TestBooleanOptionalWithTiebreaker
> --------------------------------------------------------------------------------
>
> Key: LUCENENET-95
> URL: https://issues.apache.org/jira/browse/LUCENENET-95
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Priority: Trivial
> Attachments: TryThis.patch
>
>
> Changing the line in TestDisjunctionMaxQuery.cs
> from
> public const float SCORE_COMP_THRESH = 0.0000f;
> to
> public const float SCORE_COMP_THRESH = 0.00001f;
> solves the problem but i am not sure if an exact match is needed or not.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.