diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-31 18:23:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-31 18:23:58 +0300 |
commit | c53f473bcbebbe30fc0d310c77b122e140d3f757 (patch) | |
tree | 2b62b93da5f3101df29d2584866165d575b693a4 /src/unittests/resources/map/maplayer/gettiledrawwidth.cc | |
parent | eb082b22760c35e62a5fd2faf8fbc743ad57ea8e (diff) | |
download | manaverse-c53f473bcbebbe30fc0d310c77b122e140d3f757.tar.gz manaverse-c53f473bcbebbe30fc0d310c77b122e140d3f757.tar.bz2 manaverse-c53f473bcbebbe30fc0d310c77b122e140d3f757.tar.xz manaverse-c53f473bcbebbe30fc0d310c77b122e140d3f757.zip |
Fix some unit tests.
Diffstat (limited to 'src/unittests/resources/map/maplayer/gettiledrawwidth.cc')
-rw-r--r-- | src/unittests/resources/map/maplayer/gettiledrawwidth.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/unittests/resources/map/maplayer/gettiledrawwidth.cc b/src/unittests/resources/map/maplayer/gettiledrawwidth.cc index c7cbf2a8e..53fde8f49 100644 --- a/src/unittests/resources/map/maplayer/gettiledrawwidth.cc +++ b/src/unittests/resources/map/maplayer/gettiledrawwidth.cc @@ -20,6 +20,12 @@ #include "unittests/unittests.h" +#include "configmanager.h" +#include "dirs.h" +#include "logger.h" + +#include "utils/delete2.h" + #include "resources/image/image.h" #include "resources/map/maplayer.h" @@ -28,6 +34,13 @@ TEST_CASE("MapLayer getTileDrawWidth", "") { + logger = new Logger; + + Dirs::initRootDir(); + Dirs::initHomeDir(); + + ConfigManager::initConfiguration(); + Image *const img1 = new Image(32, 32); Image *const img2 = new Image(32, 32); Image *const img3 = new Image(32, 32); @@ -388,4 +401,5 @@ TEST_CASE("MapLayer getTileDrawWidth", "") delete img1; delete img2; delete img3; + delete2(logger); } |