15 lines
286 B
C++
15 lines
286 B
C++
#include "catch.hpp"
|
|
|
|
#include <osmium/geom/factory.hpp>
|
|
|
|
#include <string>
|
|
|
|
TEST_CASE("Geometry exception") {
|
|
|
|
const osmium::geometry_error e{"some error message", "node", 17};
|
|
REQUIRE(e.id() == 17);
|
|
REQUIRE(std::string{e.what()} == "some error message (node_id=17)");
|
|
|
|
}
|
|
|