#![allow(clippy::needless_pass_by_value)] use crate::{CompressionScheme, Freq, Huffman, Id, Rle}; use quickcheck_macros::quickcheck; #[quickcheck] fn roundtrip_freq(src: Vec) -> bool { Freq::idempotent_on(&src) } #[quickcheck] fn roundtrip_rle(src: Vec) -> bool { Rle::idempotent_on(&src) } #[quickcheck] fn roundtrip_huffman(src: Vec) -> bool { Huffman::idempotent_on(&src) } #[quickcheck] fn roundtrip_id(src: Vec) -> bool { Id::idempotent_on(&src) }