summaryrefslogtreecommitdiffhomepage
path: root/test/main.cpp
blob: 8e053d23880be818c718456b820bc4527f76f02c (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "app.hpp"
#include "compat/assert.hpp"
#include "loader.hpp"
#include <filesystem>
#include <Corrade/Containers/Pair.h>
#include <Corrade/Containers/StringStlView.h>
#include <Corrade/Utility/Path.h>
#include <Magnum/Magnum.h>

namespace floormat {

app::app(const Arguments& arguments):
      Platform::WindowlessWglApplication{
          arguments,
          Configuration{}
      }
{
}

app::~app()
{
    loader_::destroy();
}

int app::exec()
{
    bool ret = true;
    ret &= test_json();
    ret &= test_tile_iter();
    ret &= test_const_math();
    return !ret;
}

} // namespace floormat

int main(int argc, char** argv)
{
    floormat::app application{{argc, argv}};
    return application.exec();
}