#include #include #include "map.hpp" #include "levelmanager.hpp" #include "tilemap.hpp" #include "config.hpp" #include "rand.hpp" using namespace fmt; using std::string; TEST_CASE("tilemap can load tiles and make a map", "[tilemap]") { LevelManager levels; GameLevel level = levels.current(); auto &map = *level.map; TileMap tiles(map.width(), map.height()); auto& walls = map.walls(); tiles.load(walls); tiles.dump(); REQUIRE(tiles.INVARIANT()); }