Skip to content

Commit

Permalink
test(gfx/SceneGraph): fixed test compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomezpl committed Oct 12, 2024
1 parent 50b7388 commit 54c874e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/L3D/SceneGraph/SceneGraphTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

class SceneGraphTest : public testing::Test
{

};

TEST(SceneGraphTest, SceneGraphIsInitialisedCorrectly)
Expand All @@ -14,7 +13,7 @@ TEST(SceneGraphTest, SceneGraphIsInitialisedCorrectly)
ASSERT_EQ(sceneGraph.Root()->FirstChild(), nullptr);
ASSERT_EQ(sceneGraph.Root()->NextSibling(), nullptr);
ASSERT_EQ(sceneGraph.Root()->Parent(), nullptr);
ASSERT_EQ(sceneGraph.Root()->GetRenderable(), nullptr);
ASSERT_EQ(sceneGraph.Root()->GetTransformable(), nullptr);
}

TEST(SceneGraphTest, SceneGraphChildIsAddedCorrectly)
Expand All @@ -25,7 +24,7 @@ TEST(SceneGraphTest, SceneGraphChildIsAddedCorrectly)
lepus::gfx::Renderable someRenderable = lepus::gfx::Renderable(&someMesh, someTransform);

sceneGraph.AddChild(&someRenderable);
ASSERT_EQ(sceneGraph.Root()->FirstChild()->GetRenderable(), &someRenderable);
ASSERT_EQ(sceneGraph.Root()->FirstChild()->GetTransformable(), &someRenderable);
ASSERT_EQ(sceneGraph.Root()->NextSibling(), nullptr);
ASSERT_EQ(sceneGraph.Root()->FirstChild()->FirstChild(), nullptr);
ASSERT_EQ(sceneGraph.Root()->FirstChild()->NextSibling(), nullptr);
Expand Down

0 comments on commit 54c874e

Please sign in to comment.