()
| 245 | |
| 246 | #[test] |
| 247 | fn small_data_roundtrip() { |
| 248 | let data = b"hello world, zstd compression test"; |
| 249 | let encoded = encode(data).unwrap(); |
| 250 | let decoded = decode(&encoded).unwrap(); |
| 251 | assert_eq!(decoded, data); |
| 252 | } |
| 253 | |
| 254 | #[test] |
| 255 | fn large_data_roundtrip() { |