summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-17 02:05:42 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-17 02:05:42 +0000
commitc915f1bcd46144578fad464e52b5a6013dc98de8 (patch)
tree4ad01cd4d1e4340fc2d46586a5ffa5c3ab642ccd /test
parentAllow overriding vectorOfN's returned type (diff)
downloadilt-c915f1bcd46144578fad464e52b5a6013dc98de8.tar.bz2
ilt-c915f1bcd46144578fad464e52b5a6013dc98de8.tar.xz
ilt-c915f1bcd46144578fad464e52b5a6013dc98de8.zip
Fix texture packer return value so positions match inputs
Diffstat (limited to 'test')
-rw-r--r--test/test-assetFactory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test-assetFactory.cpp b/test/test-assetFactory.cpp
index ad62a93..d71fa9b 100644
--- a/test/test-assetFactory.cpp
+++ b/test/test-assetFactory.cpp
@@ -129,14 +129,15 @@ BOOST_AUTO_TEST_CASE(parseX11RGB)
BOOST_AUTO_TEST_CASE(texturePacker)
{
- TexturePacker tp {{
+ std::vector<TexturePacker::Image> input {
{10, 10},
{10, 10},
{10, 10},
{100, 10},
{10, 200},
{5, 5},
- }};
+ };
+ TexturePacker tp {input};
BOOST_CHECK_EQUAL(TexturePacker::Size(128, 256), tp.minSize());
const auto result = tp.pack();
}