From 6b4ed106f7b7bb58f55c2ef1908e32d9a8197e2b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 10 Feb 2021 16:56:22 +0100 Subject: [PATCH] Remove too small test case --- tests/all.rs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/tests/all.rs b/tests/all.rs index bb27fd4..3cab9ca 100644 --- a/tests/all.rs +++ b/tests/all.rs @@ -4,24 +4,7 @@ use ordered_float::OrderedFloat; use rand::rngs::{StdRng, ThreadRng}; use rand::{Rng, SeedableRng}; -use instant_distance::{Builder, Hnsw, Point as _, PointId, Search}; - -#[test] -fn basic() { - let (hnsw, pids) = Hnsw::::builder().build(&[ - Point(0.1, 0.4), - Point(-0.324, 0.543), - Point(0.87, -0.33), - Point(0.452, 0.932), - ]); - - let mut search = Search::default(); - let mut results = vec![PointId::default()]; - let p = Point(0.1, 0.35); - let found = hnsw.search(&p, &mut results, &mut search); - assert_eq!(found, 1); - assert_eq!(&results, &[pids[0]]); -} +use instant_distance::{Builder, Point as _, PointId, Search}; #[test] fn random_heuristic() {