lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject lucenenet git commit: correct comparison
Date Sat, 30 May 2015 21:01:59 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/failingtests 5ef9135e0 -> 2d9cac601


correct comparison


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

Branch: refs/heads/failingtests
Commit: 2d9cac6012c60d12b80cd6e8c9890e5bac0e6d80
Parents: 5ef9135
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat May 30 17:01:42 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat May 30 17:01:42 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/2d9cac60/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 ac8056c..07c56e2 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
                         Weight w = s.CreateNormalizedWeight(q);
                         Scorer scorer_ = w.Scorer(Context[leafPtr], liveDocs);
                         Assert.IsTrue(scorer_.Advance(i) != DocIdSetIterator.NO_MORE_DOCS,
"query collected " + doc + " but skipTo(" + i + ") says no more docs!");
-                        Assert.AreNotEqual(doc, scorer_.DocID(), "query collected " + doc
+ " but skipTo(" + i + ") got to " + scorer_.DocID());
+                        Assert.AreEqual(doc, scorer_.DocID(), "query collected " + doc +
" but skipTo(" + i + ") got to " + scorer_.DocID());
                         float skipToScore = scorer_.Score();
                        
                         try


Mime
View raw message