aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-26 10:23:41 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-26 10:23:41 +0100
commitee632145ee5b2c1f49e0f88dbccd3a888cf9ad3c (patch)
tree373b0b7fdc5c851b7774adca87a05af80c27071c
parentb86f5adb5a266dfd2ef5f7a406c22f286786351d (diff)
Improved test
-rw-r--r--src/test/ECSTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ECSTest.cpp b/src/test/ECSTest.cpp
index 9dbeee5..af9d6f2 100644
--- a/src/test/ECSTest.cpp
+++ b/src/test/ECSTest.cpp
@@ -370,6 +370,12 @@ TEST_F(ECSTest, resetPersistent) {
EXPECT_EQ(metadata.size(), 1);
EXPECT_EQ(transform.size(), 1);
+ vector<reference_wrapper<Metadata>> metadata_id = mgr.get_components_by_id<Metadata>(1);
+
+ EXPECT_EQ(metadata_id.size(), 1);
+ EXPECT_EQ(metadata_id[0].get().game_object_id, 1);
+ EXPECT_EQ(metadata_id[0].get().name, "obj1");
+
mgr.set_persistent(1, false);
mgr.delete_all_components();