#define BOOST_TEST_MODULE compile_tests // boost.test #include // mapnik #include #include // std #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::stringstream output_stream; svg_renderer renderer(map, output_stream); renderer.apply(); } catch(...) { BOOST_FAIL("Empty implementation throws exception."); } }