Welcome to mirror list, hosted at ThFree Co, Russian Federation.

osm_id_test.cpp « generator_tests « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd4741258c0e8c62b13ea43af9da18e73976222d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "testing/testing.hpp"

#include "generator/osm_id.hpp"
#include "generator/feature_builder.hpp"

#include "base/logging.hpp"

using namespace osm;

UNIT_TEST(OsmId)
{
  Id const node = Id::Node(12345);
  TEST_EQUAL(node.OsmId(), 12345ULL, ());
  TEST_EQUAL(node.Type(), "node", ());

  Id const way = Id::Way(93245123456332ULL);
  TEST_EQUAL(way.OsmId(), 93245123456332ULL, ());
  TEST_EQUAL(way.Type(), "way", ());

  Id const relation = Id::Relation(5);
  TEST_EQUAL(relation.OsmId(), 5ULL, ());
  TEST_EQUAL(relation.Type(), "relation", ());
}