mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-23 14:04:39 +02:00
Update Snappy version to 1.2.2 and fix test compatibility
- Update SNAPPY_VERSION from 1.1.10 to 1.2.2 in VERSION file - Fix SnappyOutputStreamTest expected compression size for aarch64 (90277 bytes) to match improved compression ratio in Snappy 1.2.2 - All tests pass with new version Fixes #662 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e41d1f133a
commit
ddc8fb4323
@ -1,2 +1,2 @@
|
|||||||
SNAPPY_VERSION=1.1.10
|
SNAPPY_VERSION=1.2.2
|
||||||
BITSHUFFLE_VERSION=0.3.4
|
BITSHUFFLE_VERSION=0.3.4
|
||||||
|
Binary file not shown.
@ -180,8 +180,8 @@ public class SnappyOutputStreamTest
|
|||||||
if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN)
|
if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN)
|
||||||
assertEquals(90992, expectedCompressedData.length);
|
assertEquals(90992, expectedCompressedData.length);
|
||||||
else if(OSInfo.getArchName() == "aarch64")
|
else if(OSInfo.getArchName() == "aarch64")
|
||||||
// Arm has a better compression ratio
|
// Arm has a better compression ratio (improved with Snappy 1.2.2)
|
||||||
assertEquals(91051, expectedCompressedData.length);
|
assertEquals(90277, expectedCompressedData.length);
|
||||||
else
|
else
|
||||||
assertEquals(91080, expectedCompressedData.length);
|
assertEquals(91080, expectedCompressedData.length);
|
||||||
// The chunk size should not affect the size of the compressed output:
|
// The chunk size should not affect the size of the compressed output:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user