#include "core/fxcrt/tree_node.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
namespace fxcrt {
class TestTreeNode : public TreeNode<TestTreeNode> { … };
TEST(TreeNode, SelfAppendFirstChild) { … }
TEST(TreeNode, SelfAppendLastChild) { … }
TEST(TreeNode, SelfInsertBeforeOther) { … }
TEST(TreeNode, InsertOtherBeforeSelf) { … }
TEST(TreeNode, SelfInsertAfterOther) { … }
TEST(TreeNode, InsertOtherAfterSelf) { … }
TEST(TreeNode, RemoveParentless) { … }
TEST(TreeNode, RemoveFromWrongParent) { … }
TEST(TreeNode, SafeRemove) { … }
TEST(TreeNode, SafeRemoveParentless) { … }
TEST(TreeNode, RemoveAllChildren) { … }
TEST(TreeNode, NthChild) { … }
TEST(TreeNode, AppendFirstChild) { … }
TEST(TreeNode, RemoveChild) { … }
}