test: cleanup

This commit is contained in:
Michele Caini
2023-11-03 14:46:04 +01:00
parent 6d6d83afdb
commit 592ff17c5f

View File

@@ -1,14 +1,11 @@
#include <gtest/gtest.h>
#include <entt/config/config.h>
#include <entt/entity/component.hpp>
#include "../common/boxed_int.h"
#include "../common/non_movable.h"
struct empty {};
struct non_empty {
int value;
};
struct self_contained {
static constexpr auto in_place_delete = true;
static constexpr auto page_size = 4u;
@@ -38,7 +35,7 @@ TEST(Component, Empty) {
}
TEST(Component, NonEmpty) {
using traits_type = entt::component_traits<non_empty>;
using traits_type = entt::component_traits<test::boxed_int>;
ASSERT_FALSE(traits_type::in_place_delete);
ASSERT_EQ(traits_type::page_size, ENTT_PACKED_PAGE);