lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [13/22] lucenenet git commit: Fixed formatting bug in BaseTokenStreamTestCase that was causing the input characters to be excluded from the output message.
Date Thu, 01 Sep 2016 14:36:33 GMT
Fixed formatting bug in BaseTokenStreamTestCase that was causing the input characters to be
excluded from the output message.


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

Branch: refs/heads/analysis-work
Commit: 4e9fd4f99d2b454928014d19fbc00b429998dc4b
Parents: 91f0608
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Aug 26 12:30:57 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Aug 27 02:19:57 2016 +0700

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4e9fd4f9/src/Lucene.Net.TestFramework/Analysis/BaseTokenStreamTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Analysis/BaseTokenStreamTestCase.cs b/src/Lucene.Net.TestFramework/Analysis/BaseTokenStreamTestCase.cs
index f96955c..f2ffbe0 100644
--- a/src/Lucene.Net.TestFramework/Analysis/BaseTokenStreamTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/BaseTokenStreamTestCase.cs
@@ -874,7 +874,7 @@ namespace Lucene.Net.Analysis
                 {
                     // TODO: we can make ascii easier to read if we
                     // don't escape...
-                    sb.Append(string.Format(CultureInfo.InvariantCulture, "\\u%04x", c));
+                    sb.AppendFormat(CultureInfo.InvariantCulture, "\\u{0:x4}", c);
                 }
                 charUpto++;
             }


Mime
View raw message