File: enumeration.cpp

package info (click to toggle)
mapnik 3.0.12%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,084 kB
  • ctags: 18,454
  • sloc: cpp: 142,516; python: 1,416; sh: 769; makefile: 170; xml: 140; lisp: 13
file content (17 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include "catch.hpp"
#include <mapnik/enumeration.hpp>
#include <mapnik/symbolizer_enumerations.hpp>
#include <sstream>

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

}