summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-02 16:42:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-02 16:52:13 +0100
commit438a07bf89541d2baec53e69cc22eb3301a9d244 (patch)
treea5a794e6062388b0b0809f530b81395beb8bcab9 /test
parentf245d625fb0b8846714f11ae1a8c25cb8691784f (diff)
anim, test: test the loader more thoroughly
Diffstat (limited to 'test')
-rw-r--r--test/loader.cpp4
-rw-r--r--test/main.cpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/test/loader.cpp b/test/loader.cpp
index a066c973..fbffc407 100644
--- a/test/loader.cpp
+++ b/test/loader.cpp
@@ -1,5 +1,6 @@
#include "app.hpp"
#include "compat/assert.hpp"
+#include "compat/prelude.hpp"
#include "loader/loader.hpp"
#include "src/tile-atlas.hpp"
@@ -11,6 +12,9 @@ void test_app::test_loader()
(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);
+ loader.sceneries();
+ for (StringView name : loader.anim_atlas_list())
+ loader.anim_atlas(name);
}
} // namespace floormat
diff --git a/test/main.cpp b/test/main.cpp
index 2187ba21..4b176048 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -26,6 +26,7 @@ int test_app::exec()
test_entity();
test_loader();
test_bitmask();
+
return 0;
}