mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-10 14:24:21 +00:00
@@ -2,7 +2,23 @@
|
||||
|
||||
#include "editor/feature_type_to_osm.hpp"
|
||||
|
||||
#include "indexer/classificator.hpp"
|
||||
#include "indexer/classificator_loader.hpp"
|
||||
|
||||
using namespace editor;
|
||||
|
||||
UNIT_TEST(testIfTestRuns)
|
||||
{
|
||||
LOG(LINFO, ("New Test ran!"));
|
||||
LOG(LINFO, ("Hello from type to osm test!"));
|
||||
|
||||
classificator::Load();
|
||||
|
||||
FeatureTypeToOSM typeToOsm;
|
||||
uint32_t type = classif().GetTypeByReadableObjectName("amenity-restaurant");
|
||||
std::vector<OSMTag> resultVector = typeToOsm.typeToOSM(type);
|
||||
|
||||
TEST_EQUAL(resultVector.size(), 1, ());
|
||||
OSMTag const & result = resultVector.front();
|
||||
TEST_EQUAL(result.key, "amenity", ());
|
||||
TEST_EQUAL(result.value, "restaurant", ());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user