From 2c78e9edf9042acab9660f09ae6119ca21e5aacf Mon Sep 17 00:00:00 2001 From: Lars Pensjö Date: Sat, 2 Mar 2013 15:33:11 +0100 Subject: Added comment. --- entityx/Entity_test.cc | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3