lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [05/16] lucenenet git commit: BUG: Lucene.Net.TestFramework.Index.BaseDocValuesFormatTestCase: SortedSet requires culture-insensitive comparer in order to ensure the strings are sorted the same way as in Java.
Date Sat, 11 Mar 2017 05:52:58 GMT
BUG: Lucene.Net.TestFramework.Index.BaseDocValuesFormatTestCase: SortedSet requires culture-insensitive
comparer in order to ensure the strings are sorted the same way as in Java.


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

Branch: refs/heads/api-work
Commit: 909063c18eb710e1a96d61128be3daa5b348c8b1
Parents: b0ec623
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Mar 10 17:40:08 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Mar 10 17:40:08 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/909063c1/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
index 2ef5283..1a786bf 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
@@ -2326,7 +2326,8 @@ namespace Lucene.Net.Index
                 }
                 int numValues = TestUtil.NextInt(Random(), 0, maxValuesPerDoc);
                 // create a random set of strings
-                SortedSet<string> values = new SortedSet<string>();
+                // LUCENENET specific: Must use natural comparator to ensure culture insensitive
sort order.
+                SortedSet<string> values = new SortedSet<string>(Util.ArrayUtil.GetNaturalComparer<string>());
                 for (int v = 0; v < numValues; v++)
                 {
                     values.Add(TestUtil.RandomSimpleString(Random(), length));


Mime
View raw message