Skip to content

Commit 728814c

Browse files
committed
remove needless test for geo_filters sim_hash.rs
1 parent 0ae4694 commit 728814c

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

crates/geo_filters/src/diff_count/sim_hash.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -220,28 +220,3 @@ impl BitVec<'_> {
220220
None
221221
}
222222
}
223-
224-
#[cfg(test)]
225-
mod tests {
226-
use rand::Rng as _;
227-
228-
use crate::{
229-
diff_count::{sim_hash::SIM_BUCKETS, GeoDiffCount7},
230-
test_rng::prng_test_harness,
231-
};
232-
233-
#[test]
234-
fn sim_hash_iter_min_matches() {
235-
prng_test_harness(100, |rng| {
236-
let i = rng.random_range(0..1000);
237-
let filter = GeoDiffCount7::pseudorandom_filter(i);
238-
let expected_diff = rng.random_range(0..i);
239-
let (iter, min_matches) = filter.sim_hashes_search(expected_diff);
240-
let actual_count = iter.count();
241-
let expected_min_matches = actual_count
242-
.saturating_sub(expected_diff)
243-
.max(SIM_BUCKETS / 2);
244-
assert_eq!(min_matches, expected_min_matches)
245-
});
246-
}
247-
}

0 commit comments

Comments
 (0)