| 1 | use crate::prelude::*; |
| 2 | use bytes1::{Bytes, BytesMut}; |
| 3 | |
| 4 | #[test] |
| 5 | fn bytes() { |
| 6 | test!(Bytes) |
| 7 | .assert_snapshot() |
| 8 | .assert_allows_ser_roundtrip([Bytes::new(), Bytes::from_iter([12; 34])]) |
| 9 | .assert_matches_de_roundtrip(arbitrary_values()); |
| 10 | } |
| 11 | |
| 12 | #[test] |
| 13 | fn bytes_mut() { |
| 14 | test!(BytesMut).assert_identical::<Bytes>(); |
| 15 | } |