Update tests to match changed API

This commit is contained in:
Dirkjan Ochtman 2020-12-15 21:14:19 +01:00
parent 0d0ae6ac16
commit f8a0a2eaec
1 changed files with 6 additions and 10 deletions

View File

@ -621,16 +621,12 @@ mod tests {
#[test] #[test]
fn basic() { fn basic() {
let (hnsw, pids) = Hnsw::new( let (hnsw, pids) = Hnsw::<Point>::builder().build(&[
&[ Point(0.1, 0.4),
Point(0.1, 0.4), Point(-0.324, 0.543),
Point(-0.324, 0.543), Point(0.87, -0.33),
Point(0.87, -0.33), Point(0.452, 0.932),
Point(0.452, 0.932), ]);
],
100,
100,
);
let mut search = Search::default(); let mut search = Search::default();
let mut results = vec![PointId::invalid()]; let mut results = vec![PointId::invalid()];