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 2016/11/10 11:33:45 UTC

[34/58] [abbrv] lucenenet git commit: Fixed bug in TestFramework.Util.TestUtil.RandomRealisticUnicodeString() method that wasn't converting the code points into characters (so we were just getting random sequences of numbers instead of Unicode).

Fixed bug in TestFramework.Util.TestUtil.RandomRealisticUnicodeString() method that wasn't converting the code points into characters (so we were just getting random sequences of numbers instead of Unicode).


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

Branch: refs/heads/grouping
Commit: c3abdc7398d0ac1d0c09dc8b30362d62b99eefe4
Parents: 081ce8c
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Nov 3 18:20:03 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 8 02:24:53 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Util/TestUtil.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c3abdc73/src/Lucene.Net.TestFramework/Util/TestUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/TestUtil.cs b/src/Lucene.Net.TestFramework/Util/TestUtil.cs
index 72a55f2..a62f80a 100644
--- a/src/Lucene.Net.TestFramework/Util/TestUtil.cs
+++ b/src/Lucene.Net.TestFramework/Util/TestUtil.cs
@@ -746,7 +746,7 @@ namespace Lucene.Net.Util
             StringBuilder sb = new StringBuilder();
             for (int i = 0; i < end; i++)
             {
-                sb.Append(NextInt(r, BlockStarts[block], BlockEnds[block]));
+                sb.AppendCodePoint(NextInt(r, BlockStarts[block], BlockEnds[block]));
             }
             return sb.ToString();
         }