Skip to content

Commit

Permalink
test SparseMmapArray as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakaner committed Dec 11, 2018
1 parent 825859f commit b48567a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/t/index/test_id_to_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,20 @@ TEST_CASE("Map Id to location: SparseMemArray") {
test_func_real<index_type>(index2);
}

#ifdef __linux__
TEST_CASE("Map Id to location: SparseMmapArray") {
using index_type = osmium::index::map::SparseMmapArray<osmium::unsigned_object_id_type, osmium::Location>;

index_type index1;
test_func_all<index_type>(index1);

index_type index2;
test_func_real<index_type>(index2);
}
#else
# pragma message("not running 'SparseMmapArray' test case on this machine")
#endif

TEST_CASE("Map Id to location: FlexMem sparse") {
using index_type = osmium::index::map::FlexMem<osmium::unsigned_object_id_type, osmium::Location>;

Expand Down

0 comments on commit b48567a

Please sign in to comment.