mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
add meta feature for all compressions, add random unit test
This commit is contained in:
parent
1fe7760ee2
commit
5b2e03827a
|
@ -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 = []
|
||||||
|
|
|
@ -855,4 +855,9 @@ mod tests {
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn origin_add() {
|
||||||
|
assert_eq!(Origin(4, 2), Origin(1, 0) + Origin(3, 2));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue