From a56bb50807a6cdb9c7ad8b9851da98b3086beee1 Mon Sep 17 00:00:00 2001 From: Arthur Sonzogni Date: Thu, 15 Jul 2021 22:45:10 +0200 Subject: [PATCH] Fix compilation errors. (#155) --- src/ftxui/component/component_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ftxui/component/component_test.cpp b/src/ftxui/component/component_test.cpp index 4cef0e7..468a519 100644 --- a/src/ftxui/component/component_test.cpp +++ b/src/ftxui/component/component_test.cpp @@ -75,7 +75,7 @@ TEST(ContainerTest, Detach) { EXPECT_EQ(child_3->Parent(), nullptr); } -TEST(ContainerTest, DetachAllChild) { +TEST(ContainerTest, DetachAllChildren) { auto parent = Make(); auto child_1 = Make(); auto child_2 = Make(); @@ -89,7 +89,7 @@ TEST(ContainerTest, DetachAllChild) { EXPECT_EQ(child_2->Parent(), parent.get()); EXPECT_EQ(child_3->Parent(), parent.get()); - parent->DetachAllChild(); + parent->DetachAllChildren(); EXPECT_EQ(parent->ChildCount(), 0u); EXPECT_EQ(child_1->Parent(), nullptr);