#include #include #include "map.hpp" #include "worldbuilder.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]") { size_t width = Random::uniform(10, 25); size_t height = Random::uniform(10, 33); Map map(width,height); WorldBuilder builder(map); builder.generate(); Config config("./assets/tiles.json"); TileMap tiles(config, width, height); auto& walls = map.walls(); tiles.load(walls); tiles.dump(); REQUIRE(tiles.INVARIANT()); }