add meta feature for all compressions, add random unit test

This commit is contained in:
Vinzenz Schroeter 2024-05-19 14:22:45 +02:00
parent 1fe7760ee2
commit 5b2e03827a
2 changed files with 6 additions and 0 deletions

View file

@ -25,4 +25,5 @@ compression_zlib = ["dep:flate2"]
compression_bzip2 = ["dep:bzip2"] compression_bzip2 = ["dep:bzip2"]
compression_lzma = ["dep:rust-lzma"] compression_lzma = ["dep:rust-lzma"]
compression_zstd = ["dep:zstd"] compression_zstd = ["dep:zstd"]
all_compressions = ["compression_zlib", "compression_bzip2", "compression_lzma", "compression_zstd"]
c_api = [] c_api = []

View file

@ -855,4 +855,9 @@ mod tests {
)) ))
); );
} }
#[test]
fn origin_add() {
assert_eq!(Origin(4, 2), Origin(1, 0) + Origin(3, 2));
}
} }