From: Lars Pensjö Date: Sat, 2 Mar 2013 14:33:11 +0000 (+0100) Subject: Added comment. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=2c78e9edf9042acab9660f09ae6119ca21e5aacf;p=clyne%2Fentityx.git Added comment. --- 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); }