Skip to content

Commit e78ea4c

Browse files
committed
Fixing text that got broken when converting CRLFs
1 parent 63d1a78 commit e78ea4c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

biojava-core/src/test/java/org/biojava/nbio/core/util/TestUncompressInputStream.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class TestUncompressInputStream {
1717
* </code>
1818
* The original compress_test.txt contains text {@value #TEXT_IN_FILE}
1919
*/
20-
private static final String TEST_FILE = "org/biojava/nbio/core/util/compress_test.txt.lzc";
20+
private static final String TEST_FILE = "org/biojava/nbio/core/util/compress_test.txt.Z";
2121
private static final String TEXT_IN_FILE = "Test of biojava uncompress.\n";
2222

2323
private static final String BIGGER_TEST_FILE = "org/biojava/nbio/core/util/build-copy.xml.Z";
@@ -37,16 +37,16 @@ public void testUncompression() throws Exception {
3737
baos = new ByteArrayOutputStream();
3838
UncompressInputStream.uncompress(is, baos);
3939

40-
ByteArrayOutputStream obaos = new ByteArrayOutputStream();
41-
try (BufferedInputStream oin = new BufferedInputStream(
42-
this.getClass().getClassLoader()
43-
.getResourceAsStream(ORIG_OF_BIGGER_TEST_FILE));) {
44-
byte[] buf = new byte[100000];
45-
int len;
46-
while ((len = oin.read(buf)) >= 0)
47-
obaos.write(buf, 0, len);
48-
}
49-
50-
Assert.assertArrayEquals(baos.toByteArray(), obaos.toByteArray());
40+
ByteArrayOutputStream obaos = new ByteArrayOutputStream();
41+
try (BufferedInputStream oin = new BufferedInputStream(
42+
this.getClass().getClassLoader()
43+
.getResourceAsStream(ORIG_OF_BIGGER_TEST_FILE));) {
44+
byte[] buf = new byte[100000];
45+
int len;
46+
while ((len = oin.read(buf)) >= 0)
47+
obaos.write(buf, 0, len);
48+
}
49+
50+
Assert.assertArrayEquals(baos.toByteArray(), obaos.toByteArray());
5151
}
5252
}
Binary file not shown.

biojava-core/src/test/resources/org/biojava/nbio/core/util/compress_test.txt.lzc renamed to biojava-core/src/test/resources/org/biojava/nbio/core/util/compress_test.txt.Z

File renamed without changes.

0 commit comments

Comments
 (0)