Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 728814c

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

File tree

Expand file treeCollapse file tree

1 file changed

+0
-25
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-25
lines changed
Open diff view settings
Collapse file

‎crates/geo_filters/src/diff_count/sim_hash.rs‎

Copy file name to clipboardExpand all lines: crates/geo_filters/src/diff_count/sim_hash.rs
-25Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.