Skip to content

Commit

Permalink
fix rtree tests + verification
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 4, 2024
1 parent 950f96f commit 1e56e01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fuzz/rtree_verification.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ extern "C" {
#include "dependencies/rtree_c/rtree_c.h"
}

using cista_rtree = cista::rtree<uint32_t, 2, double>;
using mm_rtree =
cista::rtree<uint32_t, 2, double, 64, uint32_t, cista::mmap_vec_map>;
using cista_rtree = cista::raw::rtree<std::uint32_t, 2, double>;
using mm_rtree = cista::mm_rtree<std::uint32_t, 2, double>;

// Struct for tracking found entities
struct ctx_entry {
Expand Down
5 changes: 5 additions & 0 deletions test/rtree_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include "cista/serialization.h"
#endif

namespace cista {
template <typename T, std::uint32_t Dims = 2U>
using rtree = cista::raw::rtree<T, Dims>;
}

// HELPER FUNCTIONS
void fill_rand_rect(std::vector<cista::rtree<size_t>::rect>& rand_vector) {
float min_x = (float(rand()) / float((RAND_MAX)) * 360) - 180;
Expand Down

0 comments on commit 1e56e01

Please sign in to comment.