Merge branch 'master' into cstdint

This commit is contained in:
realstealthninja
2024-09-05 06:11:31 +05:30
committed by GitHub

View File

@@ -228,13 +228,13 @@ static void test_bloom_filter_string() {
10, {data_structures::hashDJB2, data_structures::hashStr});
std::vector<std::string> toCheck{"hello", "world", "!"};
std::vector<std::string> toFalse{"false", "world2", "!!!"};
for (auto& x : toCheck) {
for (const auto& x : toCheck) {
filter.add(x);
}
for (auto& x : toFalse) {
for (const auto& x : toFalse) {
assert(filter.contains(x) == false);
}
for (auto& x : toCheck) {
for (const auto& x : toCheck) {
assert(filter.contains(x));
}
}