This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit b0d23b25d83a004f29ecd2131d711b0398048ac6
Author: Shad Storhaug <[email protected]>
AuthorDate: Tue Jun 23 22:12:57 2020 +0700

    Lucene.Net.Tests.Util.TestOfflineSorter::AssertFilesIdentical(): Changed 
test to utilize the J2N's ArrayEqualityComparer to optimize the speed of the 
test (#295, #261)
---
 src/Lucene.Net.Tests/Util/TestOfflineSorter.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Lucene.Net.Tests/Util/TestOfflineSorter.cs 
b/src/Lucene.Net.Tests/Util/TestOfflineSorter.cs
index 8c56a5a..e5bdef0 100644
--- a/src/Lucene.Net.Tests/Util/TestOfflineSorter.cs
+++ b/src/Lucene.Net.Tests/Util/TestOfflineSorter.cs
@@ -163,12 +163,12 @@ namespace Lucene.Net.Util
                 while ((len = is1.Read(buf1, 0, buf1.Length)) > 0)
                 {
                     is2.Read(buf2, 0, len);
-                    // Refactored test to let NUnit test the byte array rather 
than iterate each byte
+                    // LUCENENET: Refactored test to let J2N test the byte 
array rather than iterate each byte
                     //for (int i = 0; i < len; i++)
                     //{
                     //    Assert.AreEqual(buf1[i], buf2[i]);
                     //}
-                    Assert.AreEqual(buf1, buf2);
+                    
Assert.IsTrue(J2N.Collections.ArrayEqualityComparer<byte>.OneDimensional.Equals(buf1,
 buf2));
                 }
             }
         }

Reply via email to