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)); + } }