First Commit
This commit is contained in:
commit
8a6c7106e3
1312 files changed
+425396
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#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)");
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user