Skip to content

Commit a2d9dad

Browse files
author
yash-puligundla
committed
undo inadvertent deletion of RANSInterop roundtrip test logic
1 parent 2777c3a commit a2d9dad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/htsjdk/samtools/cram/RANSInteropTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public void testRANSRoundTrip(
163163
// by filtering out the embedded newlines, and then round trip through RANS and compare the
164164
// results
165165
final ByteBuffer uncompressedInteropBytes = ByteBuffer.wrap(filterEmbeddedNewlines(IOUtils.toByteArray(uncompressedInteropStream)));
166+
final ByteBuffer compressedHtsjdkBytes = ransEncode.compress(uncompressedInteropBytes, params);
167+
uncompressedInteropBytes.rewind();
168+
Assert.assertEquals(ransDecode.uncompress(compressedHtsjdkBytes), uncompressedInteropBytes);
166169
}
167170
}
168171

0 commit comments

Comments
 (0)