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