From 060c31b9a7258f888b78b549229c024ba2316d5e Mon Sep 17 00:00:00 2001 From: pdlotko Date: Mon, 6 Nov 2017 20:49:20 +0000 Subject: Fixing small issue with tests. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/periodic_cubical_complex_fix@2836 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 1dfa1b5f33ad3da7318356c79c6876cc4cd6a93f --- src/Bitmap_cubical_complex/test/Bitmap_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Bitmap_cubical_complex') diff --git a/src/Bitmap_cubical_complex/test/Bitmap_test.cpp b/src/Bitmap_cubical_complex/test/Bitmap_test.cpp index f815a70c..8bc2bfab 100644 --- a/src/Bitmap_cubical_complex/test/Bitmap_test.cpp +++ b/src/Bitmap_cubical_complex/test/Bitmap_test.cpp @@ -1410,7 +1410,7 @@ BOOST_AUTO_TEST_CASE( check_if_boundary_of_boundary_is_zero_non_periodic_case_3_ int j = 1; for ( Bitmap_cubical_complex_base::Boundary_iterator bd2 = second_bdrange.begin() ; bd2 != second_bdrange.end() ; ++bd2 ) { - elems_in_boundary[ *bd2 ] += i*j; + elems_in_boundary[ *bd2 ] += i*j; j *= -1; } i *= -1; @@ -1424,8 +1424,6 @@ BOOST_AUTO_TEST_CASE( check_if_boundary_of_boundary_is_zero_non_periodic_case_3_ } - - BOOST_AUTO_TEST_CASE( check_if_boundary_of_boundary_is_zero_non_periodic_case_4_d ) { std::vector< unsigned > sizes(4); @@ -1601,7 +1599,6 @@ BOOST_AUTO_TEST_CASE( check_if_boundary_of_boundary_is_zero_periodic_case_4d ) - BOOST_AUTO_TEST_CASE( compute_incidence_between_cells_test ) { std::vector< unsigned > sizes(3); @@ -1637,6 +1634,7 @@ BOOST_AUTO_TEST_CASE( compute_incidence_between_cells_test ) + BOOST_AUTO_TEST_CASE( compute_incidence_between_cells_test_periodic_boundary_conditions ) { std::vector< unsigned > sizes(3); @@ -1644,7 +1642,7 @@ BOOST_AUTO_TEST_CASE( compute_incidence_between_cells_test_periodic_boundary_con sizes[1] = 5; sizes[2] = 5; - std::vector directions_of_periodicity(2,true); + std::vector directions_of_periodicity(3,true); std::vector< double > data(125 , 0); int number_of_all_elements = (2*sizes[0])*(2*sizes[1])*(2*sizes[2]); @@ -1661,7 +1659,7 @@ BOOST_AUTO_TEST_CASE( compute_incidence_between_cells_test_periodic_boundary_con { elems_in_boundary[ *bd2 ] += ba.compute_incidence_between_cells( *it , *bd ) * - ba.compute_incidence_between_cells( *bd , *bd2 ); + ba.compute_incidence_between_cells( *bd , *bd2 ); } } //check if there is anything nonzero in elems_in_boundary @@ -1672,3 +1670,5 @@ BOOST_AUTO_TEST_CASE( compute_incidence_between_cells_test_periodic_boundary_con } } + + -- cgit v1.2.3