summaryrefslogtreecommitdiff
path: root/test/test-assetFactory.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 17:33:02 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 17:33:02 +0100
commit47cd9d863fb09acb82d2428f881d61242f8ab437 (patch)
tree29751ec3408213c1ce5f9e3570386c40971c2445 /test/test-assetFactory.cpp
parentUse asset factory models in test-render (diff)
downloadilt-47cd9d863fb09acb82d2428f881d61242f8ab437.tar.bz2
ilt-47cd9d863fb09acb82d2428f881d61242f8ab437.tar.xz
ilt-47cd9d863fb09acb82d2428f881d61242f8ab437.zip
Load all assets in red dir with asset factory
Diffstat (limited to 'test/test-assetFactory.cpp')
-rw-r--r--test/test-assetFactory.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-assetFactory.cpp b/test/test-assetFactory.cpp
index c425e71..3d79213 100644
--- a/test/test-assetFactory.cpp
+++ b/test/test-assetFactory.cpp
@@ -115,6 +115,13 @@ BOOST_AUTO_TEST_CASE(foliage, *boost::unit_test::timeout(5))
}
BOOST_AUTO_TEST_SUITE_END();
+BOOST_AUTO_TEST_CASE(loadall)
+{
+ const auto assets = AssetFactory::loadAll(RESDIR);
+ BOOST_CHECK(assets.at("brush-47"));
+ BOOST_CHECK(assets.at("Tree-01-1"));
+}
+
template<typename T> using InOut = std::tuple<T, T>;
BOOST_DATA_TEST_CASE(normalizeColourName,
boost::unit_test::data::make<InOut<std::string>>({