lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: use propery score for comparison
Date Fri, 22 May 2015 17:26:18 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 0f90929e1 -> a2e16bb44


use propery score for comparison


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/a2e16bb4
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/a2e16bb4
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/a2e16bb4

Branch: refs/heads/failingtests
Commit: a2e16bb44c029aa64f57ed6590a35b54c2e40c7a
Parents: 0f90929
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Fri May 22 13:25:24 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Fri May 22 13:25:24 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Search/QueryUtils.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a2e16bb4/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Search/QueryUtils.cs b/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
index 1156eee..5d79cc1 100644
--- a/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
+++ b/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
@@ -478,7 +478,7 @@ namespace Lucene.Net.Search
                         Assert.IsTrue(scorer_.Advance(i) != DocIdSetIterator.NO_MORE_DOCS,
"query collected " + doc + " but skipTo(" + i + ") says no more docs!");
                         Assert.AreEqual(doc, scorer_.DocID(), "query collected " + doc +
" but skipTo(" + i + ") got to " + scorer_.DocID());
                         float skipToScore = scorer_.Score();
-                        Assert.AreEqual(skipToScore, scorer_.Score(), MaxDiff, "unstable
skipTo(" + i + ") score!");
+                        Assert.AreEqual(skipToScore, score, MaxDiff, "unstable skipTo(" +
i + ") score!");
                         Assert.AreEqual(score, skipToScore, MaxDiff, "query assigned doc
" + doc + " a score of <" + score + "> but skipTo(" + i + ") has <" + skipToScore
+ ">!");
 
                         // Hurry things along if they are going slow (eg


Mime
View raw message