You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2010/05/01 23:51:35 UTC

svn commit: r940116 - /lucene/lucene.net/trunk/C#/src/Test/Search/TestSort.cs

Author: digy
Date: Sat May  1 21:51:35 2010
New Revision: 940116

URL: http://svn.apache.org/viewvc?rev=940116&view=rev
Log:
LUCENENET-364 Workaround for a Mono float/Single parsing issue

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

Modified: lucene/lucene.net/trunk/C#/src/Test/Search/TestSort.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Test/Search/TestSort.cs?rev=940116&r1=940115&r2=940116&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Test/Search/TestSort.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Test/Search/TestSort.cs Sat May  1 21:51:35 2010
@@ -264,7 +264,9 @@ namespace Lucene.Net.Search
         private System.String[][] data = new System.String[][] { 
           //              tracer contents         int            float            string   custom   i18n               long                       double,                           'short',                    byte,                   'custom parser encoding'
           new string[]{   "A",   "x a",           "5",           "4f",            "c",     "A-3",   "p\u00EAche",      "10",                      "-4.0",                           "3",                        "126",                      "J"},//A, x
-          new string[]{   "B",   "y a",           "5",           "3.4028235E38",  "i",     "B-10",  "HAT",             "1000000000",              "40.0",                           "24",                       "1",                        "I"},//B, y
+        //{{See: LUCENENET-364}} Intentional diversion from Java (3.4028235E38 changed to 3.402823E38)
+          new string[]{   "B",   "y a",           "5",           "3.402823E38",   "i",     "B-10",  "HAT",             "1000000000",              "40.0",                           "24",                       "1",                        "I"},//B, y
+        //new string[]{   "B",   "y a",           "5",           "3.4028235E38",  "i",     "B-10",  "HAT",             "1000000000",              "40.0",                           "24",                       "1",                        "I"},//B, y
           new string[]{   "C",   "x a b c",       "2147483647",  "1.0",           "j",     "A-2",   "p\u00E9ch\u00E9", "99999999",                "40.00002343",                    "125",                      "15",                       "H"},//C, x
           new string[]{   "D",   "y a b c",       "-1",          "0.0f",          "a",     "C-0",   "HUT",             long.MaxValue.ToString(),  double.MinValue.ToString("E16"),  short.MinValue.ToString(),  sbyte.MinValue.ToString(),   "G"},//D, y
           new string[]{   "E",   "x a b c d",     "5",           "2f",            "h",     "B-8",   "peach",           long.MinValue.ToString(),  double.MaxValue.ToString("E16"),  short.MaxValue.ToString(),  sbyte.MaxValue.ToString(),   "F"},//E,x