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 2019/08/15 11:34:24 UTC

[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

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 <sh...@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();