lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: fix test
Date Sat, 30 May 2015 19:00:21 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 6a81f8606 -> 425325e23


fix test


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

Branch: refs/heads/failingtests
Commit: 425325e2337ccdf700e792b35f68bfaaa59ef464
Parents: 6a81f86
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 30 15:00:00 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 30 15:00:00 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/425325e2/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 6615d4c..3eae0af 100644
--- a/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
+++ b/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
@@ -479,7 +479,7 @@ namespace Lucene.Net.Search
                         Assert.AreEqual(doc, scorer_.DocID(), "query collected " + doc +
" but skipTo(" + i + ") got to " + scorer_.DocID());
                         float skipToScore = scorer_.Score();
                         Assert.IsTrue(Math.Abs(skipToScore - scorer_.Score()) < MaxDiff,
"unstable skipTo(" + i + ") score!");
-                        Assert.AreEqual(Math.Abs(score - skipToScore) < MaxDiff, "query
assigned doc " + doc + " a score of <" + score + "> but skipTo(" + i + ") has <"
+ skipToScore + ">!");
+                        Assert.IsTrue(Math.Abs(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
                         // if you got SimpleText codec this will kick in):


Mime
View raw message