From 5b2e03827a17a4d2d6dd914339fb8f7f2ca7317f Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 19 May 2024 14:22:45 +0200 Subject: [PATCH] add meta feature for all compressions, add random unit test --- servicepoint2/Cargo.toml | 1 + servicepoint2/src/command.rs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/servicepoint2/Cargo.toml b/servicepoint2/Cargo.toml index 700b666..a11a7c8 100644 --- a/servicepoint2/Cargo.toml +++ b/servicepoint2/Cargo.toml @@ -25,4 +25,5 @@ compression_zlib = ["dep:flate2"] compression_bzip2 = ["dep:bzip2"] compression_lzma = ["dep:rust-lzma"] compression_zstd = ["dep:zstd"] +all_compressions = ["compression_zlib", "compression_bzip2", "compression_lzma", "compression_zstd"] c_api = [] diff --git a/servicepoint2/src/command.rs b/servicepoint2/src/command.rs index e73ba28..de6a492 100644 --- a/servicepoint2/src/command.rs +++ b/servicepoint2/src/command.rs @@ -855,4 +855,9 @@ mod tests { )) ); } + + #[test] + fn origin_add() { + assert_eq!(Origin(4, 2), Origin(1, 0) + Origin(3, 2)); + } }