mapnik/test/unit/numerics/enumeration.cpp
2022-12-10 16:55:24 +01:00

16 lines
441 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::line_cap_enum::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");
}