diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-07 20:15:56 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-07 20:15:56 +0100 |
commit | 10a72bb7d695fd36675198fd52b467fc66fcea17 (patch) | |
tree | 6f241461e7c6fc1b2439e855b0d24f99e27a186b /test/scenery.cpp | |
parent | 24c7e1915bf16b4141d0502af040791fed65aa06 (diff) |
a
Diffstat (limited to 'test/scenery.cpp')
-rw-r--r-- | test/scenery.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/scenery.cpp b/test/scenery.cpp new file mode 100644 index 00000000..40669ec9 --- /dev/null +++ b/test/scenery.cpp @@ -0,0 +1,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 |