()
| 365 | |
| 366 | #[test] |
| 367 | fn empty_encoder() { |
| 368 | let enc = GorillaEncoder::new(); |
| 369 | assert_eq!(enc.count(), 0); |
| 370 | let data = enc.finish(); |
| 371 | assert_eq!(data.len(), 4); |
| 372 | assert_eq!(u32::from_le_bytes(data[0..4].try_into().unwrap()), 0); |
| 373 | } |
| 374 | |
| 375 | #[test] |
| 376 | fn single_sample_roundtrip() { |