lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [40/50] [abbrv] lucenenet git commit: Fixed number conversion bug in Queries.Function.TestDocValuesFieldSources
Date Sun, 23 Oct 2016 13:02:26 GMT
Fixed number conversion bug in Queries.Function.TestDocValuesFieldSources


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

Branch: refs/heads/master
Commit: 1fe048c430f9ecd47fee8e393475616c4a264ace
Parents: 4a8a6f1
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Oct 23 17:59:43 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Oct 23 19:36:47 2016 +0700

----------------------------------------------------------------------
 .../Function/TestDocValuesFieldSources.cs                     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1fe048c4/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs b/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
index 621c6eb..f567221 100644
--- a/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
+++ b/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
@@ -1,5 +1,4 @@
-´╗┐using System;
-using Lucene.Net.Analysis;
+´╗┐using Lucene.Net.Analysis;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
 using Lucene.Net.Queries.Function;
@@ -10,6 +9,8 @@ using Lucene.Net.Support;
 using Lucene.Net.Util;
 using Lucene.Net.Util.Packed;
 using NUnit.Framework;
+using System;
+using System.Globalization;
 
 namespace Lucene.Net.Tests.Queries.Function
 {
@@ -123,7 +124,7 @@ namespace Lucene.Net.Tests.Queries.Function
                             assertEquals(new BytesRef((string)expected), bytes);
                             break;
                         case FieldInfo.DocValuesType_e.NUMERIC:
-                            assertEquals(Number.ToInt64(expected.ToString()), values.LongVal(i));
+                            assertEquals(Convert.ToInt64(expected, CultureInfo.InvariantCulture),
values.LongVal(i));
                             break;
                     }
                 }


Mime
View raw message