#include "catch.hpp" #include #include #include TEST_CASE("enumeration") { mapnik::line_cap_e e(mapnik::ROUND_CAP); CHECK( e.as_string() == "round" ); // note: test the << operator, which calls `as_string` internally // is not used in mapnik, but kept for back compat std::stringstream s; s << e; CHECK( s.str() == "round" ); }