File tree Expand file tree Collapse file tree
crates/geo_filters/src/diff_count Expand file tree Collapse file tree Original file line number Diff line number Diff 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- }
You can’t perform that action at this time.
0 commit comments