Skip to content

Commit

Permalink
Fix for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial committed Mar 21, 2024
1 parent adf9dca commit ff7e1b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/java/org/xerial/snappy/SnappyOutputStreamTest.java
Expand Up @@ -179,8 +179,11 @@ public void batchingOfWritesShouldNotAffectCompressedDataSize()
// compression quality:
if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN)
assertEquals(90992, expectedCompressedData.length);
else
else if(OSInfo.getArchName() == "aarch64")
// Arm has a better compression ratio
assertEquals(91051, expectedCompressedData.length);
else
assertEquals(91080, expectedCompressedData.length);
// The chunk size should not affect the size of the compressed output:
int[] chunkSizes = new int[] {1, 100, 1023, 1024, 10000};
for (int chunkSize : chunkSizes) {
Expand Down

0 comments on commit ff7e1b5

Please sign in to comment.