table: let's write some tests

This commit is contained in:
Michele Caini
2024-04-29 09:01:54 +02:00
parent 3823d60932
commit bf854b0b5f

View File

@@ -1,6 +1,20 @@
#include <memory>
#include <tuple>
#include <type_traits>
#include <utility>
#include <gtest/gtest.h>
#include <entt/core/iterator.hpp>
#include <entt/entity/table.hpp>
#include "../../common/linter.hpp"
TEST(Table, Constructors) {
entt::table<int, char> table;
ASSERT_NO_THROW([[maybe_unused]] auto alloc = table.get_allocator());
table = entt::table<int, char>{std::allocator<void>{}};
ASSERT_NO_THROW([[maybe_unused]] auto alloc = table.get_allocator());
}
TEST(Table, Placeholder) {
[[maybe_unused]] entt::table<int, char> table{};
}