From f480e331debb810dcc843d865b8f3e07a6b10d0a Mon Sep 17 00:00:00 2001 From: anmoreau Date: Thu, 25 Jun 2015 09:50:25 +0000 Subject: Fix find and insert functions : they now sort a copy of the given range before the recursive calls. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/copy_move@646 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: d45b7e23500076d44c88a44671bd0dd47ebdbbc2 --- src/Simplex_tree/test/simplex_tree_unit_test.cpp | 1 + 1 file changed, 1 insertion(+) (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 fdd1a5be..b5c201d9 100644 --- a/src/Simplex_tree/test/simplex_tree_unit_test.cpp +++ b/src/Simplex_tree/test/simplex_tree_unit_test.cpp @@ -130,6 +130,7 @@ void test_simplex_tree_contains(typeST& simplexTree, typeSimplex& simplex, int p BOOST_CHECK( AreAlmostTheSame(simplexTree.filtration(*f_simplex),simplex.second) ); int simplexIndex=simplex.first.size()-1; + std::sort(simplex.first.begin(), simplex.first.end()); // if the simplex wasn't sorted, the next test could fail for( auto vertex : simplexTree.simplex_vertex_range(*f_simplex) ) { std::cout << "test_simplex_tree_contains - vertex=" << vertex << "||" << simplex.first.at(simplexIndex) << std::endl; -- cgit v1.2.3