()
| 274 | |
| 275 | #[test] |
| 276 | fn multiple_docs_same_dim() { |
| 277 | let mut idx = SparseInvertedIndex::new(); |
| 278 | idx.insert("doc1", &make_sv(&[(5, 0.3)])); |
| 279 | idx.insert("doc2", &make_sv(&[(5, 0.7)])); |
| 280 | idx.insert("doc3", &make_sv(&[(5, 0.1)])); |
| 281 | |
| 282 | let postings = idx.get_postings(5).unwrap(); |
| 283 | assert_eq!(postings.len(), 3); |
| 284 | } |
| 285 | } |
nothing calls this directly
no test coverage detected