#define BOOST_TEST_MODULE UI #include #include #include "testHelpers.h" #include "testMainWindow.h" #include #include #include constexpr GLsizei RENDER_SIZE = 64; BOOST_GLOBAL_FIXTURE(TestMainWindowAppBase); BOOST_AUTO_TEST_CASE(LoadFromFile) { SvgIcon svg(ImageDimensions {RENDER_SIZE}, Resource::mapPath("ui/icon/rails.svg")); const auto size = svg.texture.getSize(); BOOST_CHECK_EQUAL(size, TextureDimensions(RENDER_SIZE, RENDER_SIZE, 1)); Texture::save(svg.texture, (ANALYSIS_DIRECTORY / "rails.tga").c_str()); }