()
| 198 | |
| 199 | #[test] |
| 200 | fn i64_compression_ratio() { |
| 201 | let values: Vec<i64> = (0..10_000) |
| 202 | .map(|i| 1_700_000_000_000 + i * 10_000) |
| 203 | .collect(); |
| 204 | let encoded = encode_i64(&values).unwrap(); |
| 205 | let raw_size = values.len() * 8; |
| 206 | let ratio = raw_size as f64 / encoded.len() as f64; |
| 207 | assert!( |
| 208 | ratio > 2.0, |
| 209 | "pcodec should compress monotonic i64 >2x, got {ratio:.2}x" |
| 210 | ); |
| 211 | } |
| 212 | |
| 213 | #[test] |
| 214 | fn f64_special_values() { |
nothing calls this directly
no test coverage detected