mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
[c::b] +tests project
This commit is contained in:
@ -82,8 +82,16 @@ BOOST_AUTO_TEST_CASE(CMapEditManager_DrawTerrain_View)
|
||||
{
|
||||
try
|
||||
{
|
||||
// Load maps and json config
|
||||
auto loader = new CFilesystemLoader("test/", ".");
|
||||
// Load maps and json config
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
const std::string TEST_DATA_DIR = "test/";
|
||||
#else
|
||||
const std::string TEST_DATA_DIR = ".";
|
||||
#endif // defined
|
||||
|
||||
|
||||
auto loader = new CFilesystemLoader("test/", TEST_DATA_DIR);
|
||||
dynamic_cast<CFilesystemList*>(CResourceHandler::get())->addLoader(loader, false);
|
||||
const auto originalMap = CMapService::loadMap("test/TerrainViewTest");
|
||||
auto map = CMapService::loadMap("test/TerrainViewTest");
|
||||
|
Reference in New Issue
Block a user