2016-03-03 19:53:58 +01:00
|
|
|
|
2015-04-24 14:40:22 +02:00
|
|
|
#include "catch.hpp"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <mapnik/symbolizer.hpp>
|
|
|
|
|
|
|
|
using namespace mapnik;
|
|
|
|
|
2022-01-26 23:25:53 +01:00
|
|
|
TEST_CASE("symbolizer")
|
|
|
|
{
|
|
|
|
SECTION("enums")
|
2015-04-24 14:40:22 +02:00
|
|
|
{
|
2022-01-26 23:25:53 +01:00
|
|
|
try
|
|
|
|
{
|
|
|
|
marker_multi_policy_enum policy_in = MARKER_WHOLE_MULTI;
|
|
|
|
REQUIRE(policy_in == MARKER_WHOLE_MULTI);
|
|
|
|
markers_symbolizer sym;
|
|
|
|
put(sym, keys::markers_multipolicy, policy_in);
|
|
|
|
REQUIRE(sym.properties.count(keys::markers_multipolicy) == static_cast<unsigned long>(1));
|
|
|
|
marker_multi_policy_enum policy_out = get<mapnik::marker_multi_policy_enum>(sym, keys::markers_multipolicy);
|
|
|
|
REQUIRE(policy_out == MARKER_WHOLE_MULTI);
|
2022-11-10 16:57:38 +01:00
|
|
|
}
|
|
|
|
catch (std::exception const& ex)
|
2022-01-26 23:25:53 +01:00
|
|
|
{
|
|
|
|
std::clog << ex.what() << std::endl;
|
|
|
|
REQUIRE(false);
|
|
|
|
}
|
2015-04-24 14:40:22 +02:00
|
|
|
}
|
|
|
|
}
|