test: minor changes

This commit is contained in:
Michele Caini
2021-07-07 07:55:55 +02:00
parent f455846d18
commit e352c953dc
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ struct boxed_int { int value; };
TEST(SparseSet, Functionalities) {
entt::sparse_set set;
ASSERT_NO_THROW(auto alloc = set.get_allocator());
ASSERT_NO_THROW([[maybe_unused]] auto alloc = set.get_allocator());
set.reserve(42);

View File

@@ -55,7 +55,7 @@ bool operator==(const boxed_int &lhs, const boxed_int &rhs) {
TEST(Storage, Functionalities) {
entt::storage<int> pool;
ASSERT_NO_THROW(auto alloc = pool.get_allocator());
ASSERT_NO_THROW([[maybe_unused]] auto alloc = pool.get_allocator());
pool.reserve(42);
@@ -149,7 +149,7 @@ TEST(Storage, EmptyType) {
entt::storage<empty_type> pool;
pool.emplace(entt::entity{99});
ASSERT_NO_THROW(auto alloc = pool.get_allocator());
ASSERT_NO_THROW([[maybe_unused]] auto alloc = pool.get_allocator());
ASSERT_TRUE(pool.contains(entt::entity{99}));
}