You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ar...@apache.org on 2007/08/23 05:46:27 UTC

svn commit: r568814 - /incubator/lucene.net/trunk/C#/src/Test/QueryParser/TestQueryParser.cs

Author: aroush
Date: Wed Aug 22 20:46:26 2007
New Revision: 568814

URL: http://svn.apache.org/viewvc?rev=568814&view=rev
Log:
Fix: LUCENENET-88 "NUnit test for TestQueryParser -2"

Modified:
    incubator/lucene.net/trunk/C#/src/Test/QueryParser/TestQueryParser.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/QueryParser/TestQueryParser.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/QueryParser/TestQueryParser.cs?rev=568814&r1=568813&r2=568814&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/QueryParser/TestQueryParser.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/QueryParser/TestQueryParser.cs Wed Aug 22 20:46:26 2007
@@ -504,7 +504,7 @@
                 temp = temp.AddSeconds(59);
                 temp = temp.AddMilliseconds(999);
 			}
-            return temp.ToString("MM/d/yyy");
+            return temp.ToShortDateString();    // ToString("MM/d/yyy");
 		}
 		
         /// <summary>for testing legacy DateField support </summary>
@@ -515,7 +515,7 @@
             System.String endDate = GetLocalizedDate(2002, 2, 4, false);
             System.Globalization.Calendar endDateExpected = new System.Globalization.GregorianCalendar();
             // endDateExpected should be set to: "2002, 1, 4, 23, 59, 59, 999" otherwise what's the point of useing GregorianCalendar()   // {{Aroush-2.1}}
-            System.DateTime tempAux = new System.DateTime(2002, 1, 4, 23, 59, 59, 999);
+            System.DateTime tempAux = new System.DateTime(2002, 2, 4, 23, 59, 59, 999);
             AssertQueryEquals("[ " + startDate + " TO " + endDate + "]", null, "[" + GetLegacyDate(startDate) + " TO " + DateField.DateToString(tempAux) + "]");
             AssertQueryEquals("{  " + startDate + "    " + endDate + "   }", null, "{" + GetLegacyDate(startDate) + " TO " + GetLegacyDate(endDate) + "}");
         }