summaryrefslogtreecommitdiffhomepage
path: root/test/scenery.cpp
blob: 40669ec9238b07c3637efa08bc89c116df4319b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "app.hpp"
#include "loader/loader.hpp"
#include "loader/scenery.hpp"

namespace floormat {

namespace {

void test_loading()
{
    fm_assert(!loader.sceneries().empty());

    for (const auto& [name, descr, proto] : loader.sceneries())
        fm_assert(proto.sc_type != scenery_type::none);
}

} // namespace

void test_app::test_scenery()
{
    test_loading();
}

} // namespace floormat