()
| 136 | |
| 137 | #[test] |
| 138 | fn high_dimensional_encoding() { |
| 139 | // 768 dimensions = 96 bytes. |
| 140 | let v: Vec<f32> = (0..768).map(|i| (i as f32).sin()).collect(); |
| 141 | let bits = encode(&v); |
| 142 | assert_eq!(bits.len(), 96); |
| 143 | } |
| 144 | |
| 145 | #[test] |
| 146 | fn batch_encode_layout() { |