summaryrefslogtreecommitdiff
path: root/test/test-instancing.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-22 14:56:08 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-22 14:56:11 +0100
commit59d85f9b87fc82b52f2c7438e38768aeddc3cc87 (patch)
tree285a92b58dfde1a8bb55c5085276e26d45e80f13 /test/test-instancing.cpp
parentTest instancing automatic unmap when count is called, add some nodiscard (diff)
downloadilt-59d85f9b87fc82b52f2c7438e38768aeddc3cc87.tar.bz2
ilt-59d85f9b87fc82b52f2c7438e38768aeddc3cc87.tar.xz
ilt-59d85f9b87fc82b52f2c7438e38768aeddc3cc87.zip
Don't fill the instances unused vector unnecessarily
Diffstat (limited to 'test/test-instancing.cpp')
-rw-r--r--test/test-instancing.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test-instancing.cpp b/test/test-instancing.cpp
index 70b20fa..c743ce0 100644
--- a/test/test-instancing.cpp
+++ b/test/test-instancing.cpp
@@ -38,9 +38,8 @@ BOOST_AUTO_TEST_CASE(acquireRelease)
BOOST_CHECK(unused.empty());
}
BOOST_CHECK_EQUAL(0, next);
- BOOST_CHECK_EQUAL(1, unused.size());
- BOOST_CHECK_EQUAL(0, unused.front());
- BOOST_CHECK_EQUAL(1, index.size());
+ BOOST_CHECK(unused.empty());
+ BOOST_CHECK(index.empty());
}
BOOST_AUTO_TEST_CASE(acquireReleaseMove)
@@ -55,9 +54,8 @@ BOOST_AUTO_TEST_CASE(acquireReleaseMove)
BOOST_CHECK_EQUAL(data[0], 40);
}
BOOST_CHECK_EQUAL(0, next);
- BOOST_CHECK_EQUAL(1, unused.size());
- BOOST_CHECK_EQUAL(0, unused.front());
- BOOST_CHECK_EQUAL(1, index.size());
+ BOOST_CHECK(unused.empty());
+ BOOST_CHECK(index.empty());
}
BOOST_AUTO_TEST_CASE(autoMapUnmap)