()
| 320 | |
| 321 | #[test] |
| 322 | fn normalization_check() { |
| 323 | let normalized = make_normalized_vectors(100, 32); |
| 324 | assert!(normalization_ratio(&normalized, 32) > 0.95); |
| 325 | |
| 326 | let raw: Vec<f32> = (0..3200).map(|i| i as f32).collect(); |
| 327 | assert!(normalization_ratio(&raw, 32) < 0.1); |
| 328 | } |
| 329 | |
| 330 | #[test] |
| 331 | fn truncated_error() { |
nothing calls this directly
no test coverage detected