Skip to content

Commit

Permalink
Fix test of equality operator
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jun 17, 2020
1 parent 54433ad commit 07f77d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Octree/test/Octree/test_equality.cpp
Expand Up @@ -3,6 +3,7 @@

#include <iostream>
#include <CGAL/Octree.h>
#include <CGAL/Octree/IO.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Point_set_3.h>

Expand Down Expand Up @@ -44,6 +45,8 @@ int test_identical_trees() {
} else {
failures++;
std::cout << "[FAIL]" << std::endl;
std::cout << a.root() << std::endl;
std::cout << b.root() << std::endl;
}

return failures;
Expand Down Expand Up @@ -71,7 +74,7 @@ int test_different_trees() {

// Refine both trees using different criteria
a.refine(10, 1);
b.refine(10, 4);
b.refine(10, 9);

// Check if those trees are considered equal
std::cout << "test equality: different octrees" << std::endl;
Expand All @@ -80,6 +83,8 @@ int test_different_trees() {
} else {
failures++;
std::cout << "[FAIL]" << std::endl;
std::cout << a.root() << std::endl;
std::cout << b.root() << std::endl;
}

return failures;
Expand Down

0 comments on commit 07f77d4

Please sign in to comment.