lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r567930 - /incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs
Date Tue, 21 Aug 2007 03:19:27 GMT
Author: aroush
Date: Mon Aug 20 20:19:26 2007
New Revision: 567930

URL: http://svn.apache.org/viewvc?rev=567930&view=rev
Log:
Fix: LUCENENET-77 "Bug in TestBinaryDocument.cs"

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Document/TestBinaryDocument.cs?rev=567930&r1=567929&r2=567930&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs Mon Aug 20 20:19:26
2007
@@ -85,11 +85,11 @@
 			Assert.IsTrue(docFromReader != null);
 			
 			/** fetch the binary stored field and compare it's content with the original one */
-			System.String binaryFldStoredTest = docFromReader.GetBinaryValue("binaryStored").ToString();
+			System.String binaryFldStoredTest = System.Text.UTF8Encoding.UTF8.GetString(docFromReader.GetBinaryValue("binaryStored"));
 			Assert.IsTrue(binaryFldStoredTest.Equals(binaryValStored));
 			
 			/** fetch the binary compressed field and compare it's content with the original one */
-			System.String binaryFldCompressedTest = docFromReader.GetBinaryValue("binaryCompressed").ToString();
+			System.String binaryFldCompressedTest = System.Text.UTF8Encoding.UTF8.GetString(docFromReader.GetBinaryValue("binaryCompressed"));
 			Assert.IsTrue(binaryFldCompressedTest.Equals(binaryValCompressed));
 			
 			/** fetch the string field and compare it's content with the original one */



Mime
View raw message