File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
6660namespace {
6761struct 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+
9090int main () {
9191 TestRunner runner;
9292 {
You can’t perform that action at this time.
0 commit comments