lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [lucenenet] branch master updated: BUG: Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap_::TestCharArrayMap() - Was failing in Turkish, lowercasing must be done in the invariant culture to match Lucene
Date Thu, 15 Aug 2019 11:34:24 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


The following commit(s) were added to refs/heads/master by this push:
     new 2bd2212  BUG: Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap_::TestCharArrayMap()
- Was failing in Turkish, lowercasing must be done in the invariant culture to match Lucene
2bd2212 is described below

commit 2bd22125f6f856f3bc194c02195f4adf4ba16c4a
Author: Shad Storhaug <shad@shadstorhaug.com>
AuthorDate: Thu Aug 15 16:38:35 2019 +0700

    BUG: Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap_::TestCharArrayMap()
- Was failing in Turkish, lowercasing must be done in the invariant culture to match Lucene
---
 src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap.cs
index 218004c..39beaeb 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayMap.cs
@@ -42,7 +42,7 @@ namespace Lucene.Net.Analysis.Util
                     key[j] = (char)Random().Next(127);
                 }
                 string keyStr = new string(key);
-                string hmapKey = ignoreCase ? keyStr.ToLower() : keyStr;
+                string hmapKey = ignoreCase ? keyStr.ToLowerInvariant() : keyStr;
 
                 int val = Random().Next();
 


Mime
View raw message