From e451ae1475688cff049cefd29913c65fc28e28dd Mon Sep 17 00:00:00 2001 From: Stefan Annell Date: Wed, 1 Nov 2023 13:07:43 +0100 Subject: [PATCH] Moved the code around to make more sense. --- include/EntityComponentSystem.h => src/EcsCpp.h | 0 tests/ECSTests.cpp | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename include/EntityComponentSystem.h => src/EcsCpp.h (100%) diff --git a/include/EntityComponentSystem.h b/src/EcsCpp.h similarity index 100% rename from include/EntityComponentSystem.h rename to src/EcsCpp.h diff --git a/tests/ECSTests.cpp b/tests/ECSTests.cpp index a03e4d0..c163d10 100644 --- a/tests/ECSTests.cpp +++ b/tests/ECSTests.cpp @@ -2,7 +2,7 @@ // Created by Stefan Annell on 2023-01-01. // -#include "include/EntityComponentSystem.h" +#include "src/EcsCpp.h" #include #include @@ -175,7 +175,7 @@ TEST(ECS, CheckLastSlot) { auto fakeEntity2 = ecs::EntityID(-1); ASSERT_EQ(fakeEntity2.GetId(), -1); - EXPECT_THROW(auto ret = ecs.HasEntity(fakeEntity2), std::out_of_range); + EXPECT_THROW(auto ret = ecs.HasEntity(fakeEntity2), std::logic_error); } TEST(ECS, RemoveEntity) {