You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/25 03:44:07 UTC

[23/50] [abbrv] lucenenet git commit: Lucene.Net.Tests.Core.Support (TestByteBuffer + TestLongBuffer): Removed x != x and y != y comparisons (nonsense in .NET)

Lucene.Net.Tests.Core.Support (TestByteBuffer + TestLongBuffer): Removed x != x and y != y comparisons (nonsense in .NET)


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

Branch: refs/heads/api-work
Commit: 9aab47d7655c2d6cabdf4e6b674368be3480f17f
Parents: 3bd0c90
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Jan 25 05:24:43 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Jan 25 09:34:47 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Support/TestByteBuffer.cs | 2 +-
 src/Lucene.Net.Tests/core/Support/TestLongBuffer.cs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9aab47d7/src/Lucene.Net.Tests/core/Support/TestByteBuffer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Support/TestByteBuffer.cs b/src/Lucene.Net.Tests/core/Support/TestByteBuffer.cs
index d9cec07..322645a 100644
--- a/src/Lucene.Net.Tests/core/Support/TestByteBuffer.cs
+++ b/src/Lucene.Net.Tests/core/Support/TestByteBuffer.cs
@@ -461,7 +461,7 @@ namespace Lucene.Net.Support
                         fail("Incorrect results for ByteBuffer.compareTo",
                              xb, yb, x, y);
                     }
-                    if (xb.equals(yb) != ((x == y) || ((x != x) && (y != y))))
+                    if (xb.equals(yb) != ((x == y) /*|| ((x != x) && (y != y))*/))
                     {
                         fail("Incorrect results for ByteBuffer.equals",
                              xb, yb, x, y);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9aab47d7/src/Lucene.Net.Tests/core/Support/TestLongBuffer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Support/TestLongBuffer.cs b/src/Lucene.Net.Tests/core/Support/TestLongBuffer.cs
index 3df1596..7055211 100644
--- a/src/Lucene.Net.Tests/core/Support/TestLongBuffer.cs
+++ b/src/Lucene.Net.Tests/core/Support/TestLongBuffer.cs
@@ -344,7 +344,7 @@ namespace Lucene.Net.Support
                         fail("Incorrect results for LongBuffer.compareTo",
                              xb, yb, x, y);
                     }
-                    if (xb.equals(yb) != ((x == y) || (x != x) && (y != y)))
+                    if (xb.equals(yb) != ((x == y) /*|| (x != x) && (y != y)*/))
                     {
                         fail("Incorrect results for LongBuffer.equals",
                              xb, yb, x, y);