table: let's write some tests
This commit is contained in:
@@ -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{};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user