Skip to content

Commit 2ba99c4

Browse files
committed
tmp
1 parent 81c8336 commit 2ba99c4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/8_Trees/depth.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ class TreeWithDepth : public BinaryTree {
5757
}
5858
};
5959

60-
// Test function to verify that the computed depth matches the expected depth.
61-
void testTreeWithDepth(TestRunner &runner, const TreeWithDepth &tree,
62-
unsigned int expectedDepth, const std::string &label) {
63-
runner.expectEqual(tree.depth(), expectedDepth, label);
64-
}
65-
6660
namespace {
6761
struct TestRunner {
6862
int total = 0;
@@ -87,6 +81,12 @@ struct TestRunner {
8781
};
8882
} // namespace
8983

84+
// Test function to verify that the computed depth matches the expected depth.
85+
void testTreeWithDepth(TestRunner &runner, const TreeWithDepth &tree,
86+
unsigned int expectedDepth, const std::string &label) {
87+
runner.expectEqual(tree.depth(), expectedDepth, label);
88+
}
89+
9090
int main() {
9191
TestRunner runner;
9292
{

0 commit comments

Comments
 (0)