lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/6] lucenenet git commit: use appropriate precision digits
Date Sun, 11 Jan 2015 00:33:14 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master b4d51eaa9 -> 6c653073c


use appropriate precision digits


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

Branch: refs/heads/master
Commit: 7970bb64e609e6feb63030fcfcfe2718291706c0
Parents: b4d51ea
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat Jan 10 07:45:54 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat Jan 10 07:45:54 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Util/TestFieldCacheSanityChecker.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7970bb64/src/Lucene.Net.Tests/core/Util/TestFieldCacheSanityChecker.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestFieldCacheSanityChecker.cs b/src/Lucene.Net.Tests/core/Util/TestFieldCacheSanityChecker.cs
index 136e3c8..aaa7ff1 100644
--- a/src/Lucene.Net.Tests/core/Util/TestFieldCacheSanityChecker.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestFieldCacheSanityChecker.cs
@@ -64,7 +64,8 @@ namespace Lucene.Net.Util
             {
                 Document doc = new Document();
                 doc.Add(NewStringField("theLong", Convert.ToString(theLong--), Field.Store.NO));
-                doc.Add(NewStringField("theDouble", Convert.ToString(theDouble--), Field.Store.NO));
+                doc.Add(NewStringField("theDouble", theDouble.ToString("R"), Field.Store.NO));
+                theDouble--;
                 doc.Add(NewStringField("theByte", Convert.ToString(theByte--), Field.Store.NO));
                 doc.Add(NewStringField("theShort", Convert.ToString(theShort--), Field.Store.NO));
                 doc.Add(NewStringField("theInt", Convert.ToString(theInt--), Field.Store.NO));


Mime
View raw message