lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [3/6] lucenenet git commit: BUG: Fixed incorrect "expected" comparison in Search.TestSort.TestDoubleSignedZero() and Search.TestSortDocValues.TestDoubleSignedZero()
Date Thu, 09 Mar 2017 05:53:13 GMT
BUG: Fixed incorrect "expected" comparison in Search.TestSort.TestDoubleSignedZero() and Search.TestSortDocValues.TestDoubleSignedZero()


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

Branch: refs/heads/api-work
Commit: e99feaa96a809fb9f3d87329a16efde911bfe43d
Parents: 75380dd
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Mar 9 11:25:22 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 9 11:25:22 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Search/TestSort.cs          | 4 ++--
 src/Lucene.Net.Tests/Search/TestSortDocValues.cs | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e99feaa9/src/Lucene.Net.Tests/Search/TestSort.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Search/TestSort.cs b/src/Lucene.Net.Tests/Search/TestSort.cs
index d9dc436..c3036b1 100644
--- a/src/Lucene.Net.Tests/Search/TestSort.cs
+++ b/src/Lucene.Net.Tests/Search/TestSort.cs
@@ -1268,8 +1268,8 @@ namespace Lucene.Net.Search
             TopDocs td = searcher.Search(new MatchAllDocsQuery(), 10, sort);
             Assert.AreEqual(2, td.TotalHits);
             // numeric order
-            Assert.AreEqual("0", searcher.Doc(td.ScoreDocs[0].Doc).Get("value"));
-            Assert.AreEqual("0", searcher.Doc(td.ScoreDocs[1].Doc).Get("value"));
+            Assert.AreEqual("-0", searcher.Doc(td.ScoreDocs[0].Doc).Get("value"));
+            Assert.AreEqual("+0", searcher.Doc(td.ScoreDocs[1].Doc).Get("value"));
 
             ir.Dispose();
             dir.Dispose();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e99feaa9/src/Lucene.Net.Tests/Search/TestSortDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Search/TestSortDocValues.cs b/src/Lucene.Net.Tests/Search/TestSortDocValues.cs
index fcf39ae..fc2489a 100644
--- a/src/Lucene.Net.Tests/Search/TestSortDocValues.cs
+++ b/src/Lucene.Net.Tests/Search/TestSortDocValues.cs
@@ -904,8 +904,8 @@ namespace Lucene.Net.Search
             TopDocs td = searcher.Search(new MatchAllDocsQuery(), 10, sort);
             Assert.AreEqual(2, td.TotalHits);
             // numeric order
-            Assert.AreEqual("0", searcher.Doc(td.ScoreDocs[0].Doc).Get("value"));
-            Assert.AreEqual("0", searcher.Doc(td.ScoreDocs[1].Doc).Get("value"));
+            Assert.AreEqual("-0", searcher.Doc(td.ScoreDocs[0].Doc).Get("value"));
+            Assert.AreEqual("+0", searcher.Doc(td.ScoreDocs[1].Doc).Get("value"));
 
             ir.Dispose();
             dir.Dispose();


Mime
View raw message