mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-07 15:11:21 +00:00
syntax
This commit is contained in:
parent
ae4d9c4bcb
commit
82f510c642
@ -40,11 +40,11 @@ TEST(ECSTest, MakeOneEntityAndAddComponents) {
|
|||||||
testCompPtr->value = 15;
|
testCompPtr->value = 15;
|
||||||
|
|
||||||
// try getting the same component we just added
|
// try getting the same component we just added
|
||||||
auto* const getTestCompPtr = e.GetComponent<TestComponent>();
|
auto* const gotTestCompPtr = e.GetComponent<TestComponent>();
|
||||||
ASSERT_NE(getTestCompPtr, nullptr);
|
ASSERT_NE(gotTestCompPtr, nullptr);
|
||||||
ASSERT_EQ(testCompPtr, getTestCompPtr);
|
ASSERT_EQ(gotTestCompPtr, testCompPtr);
|
||||||
ASSERT_NE(getTestCompPtr->value, 0);
|
ASSERT_NE(gotTestCompPtr->value, 0);
|
||||||
ASSERT_EQ(getTestCompPtr->value, 15);
|
ASSERT_EQ(gotTestCompPtr->value, 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test world scoping
|
// Test world scoping
|
||||||
|
Loading…
x
Reference in New Issue
Block a user