2016-03-03 18:53:58 +00:00
|
|
|
|
2016-02-09 18:08:29 +00:00
|
|
|
#include "catch.hpp"
|
|
|
|
#include <mapnik/enumeration.hpp>
|
2016-02-16 20:30:40 +00:00
|
|
|
#include <mapnik/symbolizer_enumerations.hpp>
|
2016-02-09 18:08:29 +00:00
|
|
|
#include <sstream>
|
|
|
|
|
2022-01-26 22:25:53 +00:00
|
|
|
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");
|
2017-05-05 11:02:01 +00:00
|
|
|
}
|