From 7a605742eeee48981e8c4306d081633e47ec7c1a Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 3 May 2024 14:31:24 +0200 Subject: [PATCH] table: refine tests with exceptions enabled --- test/entt/entity/table.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/entt/entity/table.cpp b/test/entt/entity/table.cpp index fde6dbc40..ed8612964 100644 --- a/test/entt/entity/table.cpp +++ b/test/entt/entity/table.cpp @@ -498,15 +498,10 @@ TEST(Table, ThrowingAllocator) { table.get_allocator().template throw_counter(0u); ASSERT_THROW(table.reserve(1u), test::throwing_allocator_exception); - ASSERT_EQ(table.capacity(), 0u); + table.get_allocator().template throw_counter(0u); table.get_allocator().template throw_counter(0u); ASSERT_THROW(table.emplace(), test::throwing_allocator_exception); - ASSERT_TRUE(table.empty()); - - table.get_allocator().template throw_counter(0u); - ASSERT_THROW(table.emplace(3, 'c'), test::throwing_allocator_exception); - ASSERT_TRUE(table.empty()); }