diff --git a/Octree/include/CGAL/Octree/Node.h b/Octree/include/CGAL/Octree/Node.h index daafba56496f..2c47cd68a538 100644 --- a/Octree/include/CGAL/Octree/Node.h +++ b/Octree/include/CGAL/Octree/Node.h @@ -228,9 +228,9 @@ namespace CGAL { */ bool operator==(Node &rhs) const { - // Compare the values they contain - if (m_value != rhs.m_value) - return false; + // TODO: Should I compare the values they contain +// if (m_value != rhs.m_value) +// return false; // If one node is a leaf, and the other isn't, they're not the same if (is_leaf() != rhs.is_leaf()) diff --git a/Octree/test/Octree/test_octree_refine.cpp b/Octree/test/Octree/test_octree_refine.cpp index abc4048bdf8c..a4349939ec5c 100644 --- a/Octree/test/Octree/test_octree_refine.cpp +++ b/Octree/test/Octree/test_octree_refine.cpp @@ -47,15 +47,12 @@ void test_2_points() { Octree octree(points, point_map); octree.refine(10, 1); - // Create an analogue for the tree - Octree other{points, point_map}; - other.root().split(); - - // Compare the results of printing them - std::stringstream octree_printed, other_printed; - octree_printed << octree; - other_printed << other; - assert(other_printed.str() == octree_printed.str()); + // The octree should have been split once + Octree::Node other{}; + other.split(); + assert(other == octree.root()); + + } void test_9_points() {