lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r567894 - /incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs
Date Tue, 21 Aug 2007 01:13:25 GMT
Author: aroush
Date: Mon Aug 20 18:13:25 2007
New Revision: 567894

URL: http://svn.apache.org/viewvc?rev=567894&view=rev
Log:
Fix: LUCENENET-67 "Bug in TestIndexWriter.TestAddIndexOnDiskFull"

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestIndexWriter.cs?rev=567894&r1=567893&r2=567894&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs Mon Aug 20 18:13:25 2007
@@ -393,7 +393,7 @@
                         }
                         */
 						
-                        if (!startFiles.Equals(endFiles))
+                        if (CompareStringArrays(startFiles, endFiles) == false)
                         {
                             System.String successStr;
                             if (success)
@@ -908,6 +908,18 @@
             else
                 tmpBool2 = false;
             bool generatedAux2 = tmpBool2;
+        }
+
+        bool CompareStringArrays(System.String[] l1, System.String[] l2)
+        {
+            if (l1.Length != l2.Length)
+                return false;
+            for (int i = 0; i < l1.Length; i++)
+            {
+                if (l1[i] != l2[i])
+                    return false;
+            }
+            return true;
         }
     }
 }



Mime
View raw message