mapnik/test/unit/numerics/enumeration.cpp

18 lines
460 B
C++
Raw Normal View History

#include "catch.hpp"
#include <mapnik/enumeration.hpp>
2016-02-16 20:30:40 +00:00
#include <mapnik/symbolizer_enumerations.hpp>
#include <sstream>
TEST_CASE("enumeration") {
2016-02-16 20:30:40 +00:00
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;
2016-02-16 20:30:40 +00:00
CHECK( s.str() == "round" );
2017-05-05 11:02:01 +00:00
}