lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: put back previous comparison
Date Sat, 30 May 2015 20:14:41 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 51bacf03c -> e6e834c9a


put back previous comparison


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

Branch: refs/heads/failingtests
Commit: e6e834c9ac0b33dc4e4255fb30cd0eea49ecd757
Parents: 51bacf0
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 30 16:14:22 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 30 16:14:22 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/e6e834c9/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 669cc9a..814a9bf 100644
--- a/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
+++ b/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
@@ -481,7 +481,7 @@ namespace Lucene.Net.Search
                         float skipToScore = scorer_.Score();
                         try
                         {
-                            Assert.IsTrue(Math.Abs(skipToScore - scorer_.Score()) < MaxDiff,
"unstable skipTo(" + i + ") score!");
+                            Assert.AreEqual(skipToScore, scorer_.Score(), MaxDiff, "unstable
skipTo(" + i + ") score!");
                         }
                         catch (AssertionException ex)
                         {


Mime
View raw message