summaryrefslogtreecommitdiff
path: root/src/Simplex_tree/test/simplex_tree_unit_test.cpp
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-09-10 07:49:57 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-09-10 07:49:57 +0000
commit86d8370c00ec9733469864ed7842f72f4f8417b8 (patch)
tree72f6683740975e286d7e4d19a801f356edc2c09a /src/Simplex_tree/test/simplex_tree_unit_test.cpp
parent606d3470542a3112ce6d67d4a493b98be6ea2c94 (diff)
operator==
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/copy_move@782 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 498e8c3f35d105b22752983360fbf8229c224776
Diffstat (limited to 'src/Simplex_tree/test/simplex_tree_unit_test.cpp')
-rw-r--r--src/Simplex_tree/test/simplex_tree_unit_test.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Simplex_tree/test/simplex_tree_unit_test.cpp b/src/Simplex_tree/test/simplex_tree_unit_test.cpp
index 6be6d4f3..eb3557ae 100644
--- a/src/Simplex_tree/test/simplex_tree_unit_test.cpp
+++ b/src/Simplex_tree/test/simplex_tree_unit_test.cpp
@@ -649,37 +649,33 @@ BOOST_AUTO_TEST_CASE(copy_move_on_simplex_tree) {
st.set_dimension(3);
std::cout << "Printing st - address = " << &st << std::endl;
- //std::cout << st << std::endl;
// Copy constructor
typeST st_copy = st;
std::cout << "Printing a copy of st - address = " << &st_copy << std::endl;
- //std::cout << st_copy << std::endl;
// Check the data are the same
- BOOST_CHECK(st.is_equal(st_copy));
+ BOOST_CHECK(st == st_copy);
// Check there is a new simplex tree reference
BOOST_CHECK(&st != &st_copy);
// Move constructor
typeST st_move = std::move(st);
std::cout << "Printing a move of st - address = " << &st_move << std::endl;
- //std::cout << st_move << std::endl;
// Check the data are the same
- BOOST_CHECK(st_move.is_equal(st_copy));
+ BOOST_CHECK(st_move == st_copy);
// Check there is a new simplex tree reference
BOOST_CHECK(&st_move != &st_copy);
BOOST_CHECK(&st_move != &st);
typeST st_empty;
// Check st has been emptied by the move
- BOOST_CHECK(st.is_equal(st_empty));
+ BOOST_CHECK(st == st_empty);
BOOST_CHECK(st.filtration() == 0);
BOOST_CHECK(st.dimension() == -1);
BOOST_CHECK(st.num_simplices() == 0);
BOOST_CHECK(st.num_vertices() == (size_t)0);
std::cout << "Printing st once again- address = " << &st << std::endl;
- //std::cout << st << std::endl;
}