lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [2/2] lucenenet git commit: match expected order in Lucene
Date Sun, 19 Apr 2015 14:30:08 GMT
match expected order in Lucene


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

Branch: refs/heads/master
Commit: c7b14909fb0e8ff15f15db82359ffe2dfc8e5342
Parents: dedfe73
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat Apr 18 21:16:28 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat Apr 18 21:16:28 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Util/TestNumericUtils.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c7b14909/src/Lucene.Net.Tests/core/Util/TestNumericUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestNumericUtils.cs b/src/Lucene.Net.Tests/core/Util/TestNumericUtils.cs
index fc3c28a..b90c4b0 100644
--- a/src/Lucene.Net.Tests/core/Util/TestNumericUtils.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestNumericUtils.cs
@@ -165,7 +165,7 @@ namespace Lucene.Net.Util
         [Test]
         public virtual void TestDoubles()
         {
-            double[] vals = new double[] { double.NaN, double.NegativeInfinity, -2.3E25,
-1.0E15, -1.0, -1.0E-1, -1.0E-2, -0.0, +0.0, 1.0E-2, 1.0E-1, 1.0, 1.0E15, 2.3E25, double.PositiveInfinity
};
+            double[] vals = new double[] { double.NegativeInfinity, -2.3E25, -1.0E15, -1.0,
-1.0E-1, -1.0E-2, -0.0, +0.0, 1.0E-2, 1.0E-1, 1.0, 1.0E15, 2.3E25, double.PositiveInfinity,
double.NaN };
             long[] longVals = new long[vals.Length];
 
             // check forward and back conversion
@@ -199,7 +199,7 @@ namespace Lucene.Net.Util
         [Test]
         public virtual void TestFloats()
         {
-            float[] vals = new float[] { float.NaN, float.NegativeInfinity, -2.3E25f, -1.0E15f,
-1.0f, -1.0E-1f, -1.0E-2f, -0.0f, +0.0f, 1.0E-2f, 1.0E-1f, 1.0f, 1.0E15f, 2.3E25f, float.PositiveInfinity
};
+            float[] vals = new float[] { float.NegativeInfinity, -2.3E25f, -1.0E15f, -1.0f,
-1.0E-1f, -1.0E-2f, -0.0f, +0.0f, 1.0E-2f, 1.0E-1f, 1.0f, 1.0E15f, 2.3E25f, float.PositiveInfinity,
float.NaN };
             int[] intVals = new int[vals.Length];
 
             // check forward and back conversion


Mime
View raw message