mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 20:27:31 +08:00
Fix compilation errors. (#155)
This commit is contained in:
parent
c34494ce26
commit
a56bb50807
@ -75,7 +75,7 @@ TEST(ContainerTest, Detach) {
|
|||||||
EXPECT_EQ(child_3->Parent(), nullptr);
|
EXPECT_EQ(child_3->Parent(), nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(ContainerTest, DetachAllChild) {
|
TEST(ContainerTest, DetachAllChildren) {
|
||||||
auto parent = Make();
|
auto parent = Make();
|
||||||
auto child_1 = Make();
|
auto child_1 = Make();
|
||||||
auto child_2 = Make();
|
auto child_2 = Make();
|
||||||
@ -89,7 +89,7 @@ TEST(ContainerTest, DetachAllChild) {
|
|||||||
EXPECT_EQ(child_2->Parent(), parent.get());
|
EXPECT_EQ(child_2->Parent(), parent.get());
|
||||||
EXPECT_EQ(child_3->Parent(), parent.get());
|
EXPECT_EQ(child_3->Parent(), parent.get());
|
||||||
|
|
||||||
parent->DetachAllChild();
|
parent->DetachAllChildren();
|
||||||
|
|
||||||
EXPECT_EQ(parent->ChildCount(), 0u);
|
EXPECT_EQ(parent->ChildCount(), 0u);
|
||||||
EXPECT_EQ(child_1->Parent(), nullptr);
|
EXPECT_EQ(child_1->Parent(), nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user