You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pe...@apache.org on 2020/05/23 08:00:52 UTC

[commons-compress] branch master updated: fix minor errors in test

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

peterlee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f9e2e5  fix minor errors in test
8f9e2e5 is described below

commit 8f9e2e5aa9a059076361cb31c98ef7434eae4c28
Author: PeterAlfredLee <pe...@gmail.com>
AuthorDate: Sat May 23 15:55:45 2020 +0800

    fix minor errors in test
---
 .../java/org/apache/commons/compress/archivers/zip/ZipFileTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
index 3da2510..b8b8e66 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
@@ -904,7 +904,7 @@ public class ZipFileTest {
         String tempLineInFile2;
         for(int i = 0;i < linesOfFile1.size();i++) {
             tempLineInFile1 = linesOfFile1.get(i).replaceAll("\r\n", "\n");
-            tempLineInFile2 = linesOfFile1.get(i).replaceAll("\r\n", "\n");
+            tempLineInFile2 = linesOfFile2.get(i).replaceAll("\r\n", "\n");
             Assert.assertEquals(tempLineInFile1, tempLineInFile2);
         }
     }