diff options
-rw-r--r-- | entityx/Entity_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/entityx/Entity_test.cc b/entityx/Entity_test.cc index 3fa6548..d042b4b 100644 --- a/entityx/Entity_test.cc +++ b/entityx/Entity_test.cc @@ -87,6 +87,7 @@ TEST_F(EntityManagerTest, TestEntityReuse) { em.destroy(e1); ASSERT_TRUE(!em.exists(e1)); Entity e2 = em.create(); + // It is assumed that the allocation will reuse the same entity id. ASSERT_EQ(e2.id(), id); } |