Files
comaps/3party/succinct/test_common.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

21 lines
571 B
C++

#pragma once
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include <stdint.h>
#include <vector>
#include <stack>
#define MY_REQUIRE_EQUAL(A, B, MSG) \
BOOST_REQUIRE_MESSAGE((A) == (B), BOOST_PP_STRINGIZE(A) << " == " << BOOST_PP_STRINGIZE(B) << " [" << A << " != " << B << "] " << MSG)
inline std::vector<bool> random_bit_vector(size_t n = 10000, double density = 0.5)
{
std::vector<bool> v;
for (size_t i = 0; i < n; ++i) {
v.push_back(rand() < (RAND_MAX * density));
}
return v;
}