aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Pensjö <lars.pensjo@gmail.com>2013-03-02 15:33:11 +0100
committerLars Pensjö <lars.pensjo@gmail.com>2013-03-02 15:33:11 +0100
commit2c78e9edf9042acab9660f09ae6119ca21e5aacf (patch)
treecb9a37384064996bc71b96c8aad5dd0fe2454497
parent48d8f894bd7bfddcb49743855397e3ab622bc40f (diff)
Added comment.
-rw-r--r--entityx/Entity_test.cc1
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);
}