summaryrefslogtreecommitdiffhomepage
path: root/test/loader.cpp
blob: a066c973437af48d779aa05c1302cc4d40817805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "app.hpp"
#include "compat/assert.hpp"
#include "loader/loader.hpp"
#include "src/tile-atlas.hpp"

namespace floormat {

void test_app::test_loader()
{
    (void)loader.tile_atlases("wall.json", pass_mode::blocked);
    (void)loader.tile_atlases("floor.json", pass_mode::pass);
    fm_assert(loader.tile_atlas("texel")->pass_mode() == pass_mode::blocked);
    fm_assert(loader.tile_atlas("metal1")->pass_mode() == pass_mode::pass);
}

} // namespace floormat