#undef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS #define BOOST_TEST_MODULE compile_test // boost.test #include // mapnik #include #include // std #include #include /** * This test is meant to see if the empty * implementation of SVG renderer compiles * and runs when using the inherited methods. */ BOOST_AUTO_TEST_CASE(compile_test_case) { using namespace mapnik; Map map(800, 600); try { std::ostringstream output_stream; std::ostream_iterator output_stream_iterator(output_stream); svg_renderer > renderer(map, output_stream_iterator); renderer.apply(); } catch(...) { BOOST_FAIL("Empty implementation throws exception."); } }