From 86d8370c00ec9733469864ed7842f72f4f8417b8 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Thu, 10 Sep 2015 07:49:57 +0000 Subject: 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 --- src/Simplex_tree/test/simplex_tree_unit_test.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/Simplex_tree/test/simplex_tree_unit_test.cpp') 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; } -- cgit v1.2.3