1
0
Fork 0
mirror of https://github.com/mapnik/mapnik.git synced 2025-09-12 08:32:53 +02:00
mapnik/test/unit/numerics/enumeration.cpp

17 lines
No EOL
459 B
C++

#include "catch.hpp"
#include <mapnik/enumeration.hpp>
#include <mapnik/symbolizer_enumerations.hpp>
#include <sstream>
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" );
}