Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Dec 17, 2024
1 parent ae4d9c4 commit 82f510c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/dECSTests/TestECS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ TEST(ECSTest, MakeOneEntityAndAddComponents) {
testCompPtr->value = 15;

// try getting the same component we just added
auto* const getTestCompPtr = e.GetComponent<TestComponent>();
ASSERT_NE(getTestCompPtr, nullptr);
ASSERT_EQ(testCompPtr, getTestCompPtr);
ASSERT_NE(getTestCompPtr->value, 0);
ASSERT_EQ(getTestCompPtr->value, 15);
auto* const gotTestCompPtr = e.GetComponent<TestComponent>();
ASSERT_NE(gotTestCompPtr, nullptr);
ASSERT_EQ(gotTestCompPtr, testCompPtr);
ASSERT_NE(gotTestCompPtr->value, 0);
ASSERT_EQ(gotTestCompPtr->value, 15);
}

// Test world scoping
Expand Down

0 comments on commit 82f510c

Please sign in to comment.