summaryrefslogtreecommitdiff
path: root/src/Bitmap_cubical_complex
diff options
context:
space:
mode:
authorpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-06 20:49:20 +0000
committerpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-06 20:49:20 +0000
commit060c31b9a7258f888b78b549229c024ba2316d5e (patch)
treeb895219239b4cee3c2325dd5ffc84851b71ae59e /src/Bitmap_cubical_complex
parent78ba1f8225b876bb8fa300fcba271974bdcdba1f (diff)
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
Diffstat (limited to 'src/Bitmap_cubical_complex')
-rw-r--r--src/Bitmap_cubical_complex/test/Bitmap_test.cpp12
1 files changed, 6 insertions, 6 deletions
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<bool> directions_of_periodicity(2,true);
+ std::vector<bool> 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
}
}
+
+