lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r836400 - /incubator/lucene.net/trunk/C#/src/Test/Util/TestFieldCacheSanityChecker.cs
Date Sun, 15 Nov 2009 19:31:11 GMT
Author: digy
Date: Sun Nov 15 19:31:10 2009
New Revision: 836400

URL: http://svn.apache.org/viewvc?rev=836400&view=rev
Log:
LUCENENET-250 estFieldCacheSanityChecker bug

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Util/TestFieldCacheSanityChecker.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Util/TestFieldCacheSanityChecker.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Util/TestFieldCacheSanityChecker.cs?rev=836400&r1=836399&r2=836400&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Util/TestFieldCacheSanityChecker.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Util/TestFieldCacheSanityChecker.cs Sun Nov 15
19:31:10 2009
@@ -64,11 +64,11 @@
 			{
 				Document doc = new Document();
 				doc.Add(new Field("theLong", System.Convert.ToString(theLong--), Field.Store.NO, Field.Index.NOT_ANALYZED));
-				doc.Add(new Field("theDouble", System.Convert.ToString(theDouble--), Field.Store.NO,
Field.Index.NOT_ANALYZED));
+				doc.Add(new Field("theDouble", (theDouble--).ToString("E16"), Field.Store.NO, Field.Index.NOT_ANALYZED));
 				doc.Add(new Field("theByte", System.Convert.ToString((byte) theByte--), Field.Store.NO,
Field.Index.NOT_ANALYZED));
 				doc.Add(new Field("theShort", System.Convert.ToString(theShort--), Field.Store.NO, Field.Index.NOT_ANALYZED));
 				doc.Add(new Field("theInt", System.Convert.ToString(theInt--), Field.Store.NO, Field.Index.NOT_ANALYZED));
-				doc.Add(new Field("theFloat", System.Convert.ToString(theFloat--), Field.Store.NO, Field.Index.NOT_ANALYZED));
+				doc.Add(new Field("theFloat", (theFloat--).ToString("E8"), Field.Store.NO, Field.Index.NOT_ANALYZED));
 				if (0 == i % 3)
 				{
 					wA.AddDocument(doc);



Mime
View raw message