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/21 03:13:25 UTC

svn commit: r567894 - /incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriter.cs

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;
         }
     }
 }