lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [lucenenet] 38/42: BUG: Lucene.Net.Tests.Search.TestFieldCacheRangeFilter.TestSparseIndex: formatting value must be done in invariant culture
Date Wed, 07 Aug 2019 22:26:35 GMT
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit ae60215ee62641e1196e8587fdd84b33f2e31718
Author: Shad Storhaug <shad@shadstorhaug.com>
AuthorDate: Wed Aug 7 09:30:44 2019 +0700

    BUG: Lucene.Net.Tests.Search.TestFieldCacheRangeFilter.TestSparseIndex: formatting value
must be done in invariant culture
---
 src/Lucene.Net.Tests/Search/TestFieldCacheRangeFilter.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.Tests/Search/TestFieldCacheRangeFilter.cs b/src/Lucene.Net.Tests/Search/TestFieldCacheRangeFilter.cs
index 63f77d9..97e5e1d 100644
--- a/src/Lucene.Net.Tests/Search/TestFieldCacheRangeFilter.cs
+++ b/src/Lucene.Net.Tests/Search/TestFieldCacheRangeFilter.cs
@@ -1,6 +1,7 @@
 using Lucene.Net.Documents;
 using NUnit.Framework;
 using System;
+using System.Globalization;
 using System.IO;
 
 namespace Lucene.Net.Search
@@ -559,7 +560,7 @@ namespace Lucene.Net.Search
             for (int d = -20; d <= 20; d++)
             {
                 Document doc = new Document();
-                doc.Add(NewStringField("id", Convert.ToString(d), Field.Store.NO));
+                doc.Add(NewStringField("id", Convert.ToString(d, CultureInfo.InvariantCulture),
Field.Store.NO));
                 doc.Add(NewStringField("body", "body", Field.Store.NO));
                 writer.AddDocument(doc);
             }


Mime
View raw message