lucene-lucene-net-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r940106 - /lucene/lucene.net/trunk/C#/src/Test/Search/TestFieldCache.cs
Date Sat, 01 May 2010 20:49:10 GMT
Author: digy
Date: Sat May  1 20:49:10 2010
New Revision: 940106

URL: http://svn.apache.org/viewvc?rev=940106&view=rev
Log:
LUCENENET-362 Java to C# "lost in translation" issue in Test/Search/TestFieldCache.cs

Modified:
    lucene/lucene.net/trunk/C#/src/Test/Search/TestFieldCache.cs

Modified: lucene/lucene.net/trunk/C#/src/Test/Search/TestFieldCache.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Test/Search/TestFieldCache.cs?rev=940106&r1=940105&r2=940106&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Test/Search/TestFieldCache.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Test/Search/TestFieldCache.cs Sat May  1 20:49:10 2010
@@ -52,11 +52,11 @@ namespace Lucene.Net.Search
 			{
 				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", theDouble.ToString("E16"), 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((sbyte) 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", theFloat.ToString("E8"), Field.Store.NO, Field.Index.NOT_ANALYZED));
+				doc.Add(new Field("theFloat", (theFloat--).ToString("E8"), Field.Store.NO, Field.Index.NOT_ANALYZED));
 				writer.AddDocument(doc);
 			}
 			writer.Close();



Mime
View raw message