File: enumeration.cpp

package info (click to toggle)
mapnik 4.2.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,592 kB
  • sloc: cpp: 163,859; python: 1,332; sh: 690; xml: 161; makefile: 123; perl: 28; lisp: 13
file content (16 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#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");
}