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 c14848be081eeb16558ca1f1cf9b5a2d2ad926c2
Author: Shad Storhaug <[email protected]>
AuthorDate: Sat Nov 20 12:24:04 2021 +0700

    BUG: Lucene.Net.Util.Fst.TestFSTs::TestExpandedCloseToRoot(): Use 
StringComparer.Ordinal to sort in the strings without culture sensitivity.
---
 src/Lucene.Net.Tests/Util/Fst/TestFSTs.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Lucene.Net.Tests/Util/Fst/TestFSTs.cs 
b/src/Lucene.Net.Tests/Util/Fst/TestFSTs.cs
index e595c1c..014ec0b 100644
--- a/src/Lucene.Net.Tests/Util/Fst/TestFSTs.cs
+++ b/src/Lucene.Net.Tests/Util/Fst/TestFSTs.cs
@@ -940,7 +940,7 @@ namespace Lucene.Net.Util.Fst
                                                               outputs,
                                                               null,
                                                               true);
-          Arrays.sort(strings);
+          Array.Sort(strings, StringComparer.Ordinal);
           final IntsRef scratch = new IntsRef();
           for(String s : strings) {
             builder.Add(Util.ToIntsRef(new BytesRef(s), scratch), 
outputs.getNoOutput());
@@ -1260,7 +1260,7 @@ namespace Lucene.Net.Util.Fst
             StringBuilder b = new StringBuilder();
             s.Generate(@out, b, 'a', 'i', 10);
             string[] input = @out.ToArray();
-            Array.Sort(input);
+            Array.Sort(input, StringComparer.Ordinal);
             FST<object> fst = s.Compile(input);
             FST.Arc<object> arc = fst.GetFirstArc(new FST.Arc<object>());
             s.VerifyStateAndBelow(fst, arc, 1);

Reply via email to