summaryrefslogtreecommitdiff
path: root/src/Coxeter_triangulation/test/perm_rep_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Coxeter_triangulation/test/perm_rep_test.cpp')
-rw-r--r--src/Coxeter_triangulation/test/perm_rep_test.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/Coxeter_triangulation/test/perm_rep_test.cpp b/src/Coxeter_triangulation/test/perm_rep_test.cpp
index 2376c88a..a668fc66 100644
--- a/src/Coxeter_triangulation/test/perm_rep_test.cpp
+++ b/src/Coxeter_triangulation/test/perm_rep_test.cpp
@@ -20,7 +20,7 @@ BOOST_AUTO_TEST_CASE(permutahedral_representation) {
typedef std::vector<Part> Partition;
typedef Gudhi::coxeter_triangulation::Permutahedral_representation<Vertex, Partition> Simplex_handle;
Vertex v0(10, 0);
- Partition omega = {Part({5}), Part({2}), Part({3,7}), Part({4,9}), Part({0,6,8}), Part({1,10})};
+ Partition omega = {Part({5}), Part({2}), Part({3, 7}), Part({4, 9}), Part({0, 6, 8}), Part({1, 10})};
Simplex_handle s(v0, omega);
// Dimension check
@@ -28,34 +28,31 @@ BOOST_AUTO_TEST_CASE(permutahedral_representation) {
// Vertex number check
std::vector<Vertex> vertices;
- for (auto& v: s.vertex_range())
- vertices.push_back(v);
+ for (auto& v : s.vertex_range()) vertices.push_back(v);
BOOST_CHECK(vertices.size() == 6);
-
+
// Facet number check
std::vector<Simplex_handle> facets;
- for (auto& f: s.facet_range())
- facets.push_back(f);
+ for (auto& f : s.facet_range()) facets.push_back(f);
BOOST_CHECK(facets.size() == 6);
// Face of dim 3 number check
std::vector<Simplex_handle> faces3;
- for (auto& f: s.face_range(3))
- faces3.push_back(f);
+ for (auto& f : s.face_range(3)) faces3.push_back(f);
BOOST_CHECK(faces3.size() == 15);
// Cofacet number check
std::vector<Simplex_handle> cofacets;
- for (auto& f: s.cofacet_range())
- cofacets.push_back(f);
+ for (auto& f : s.cofacet_range()) cofacets.push_back(f);
BOOST_CHECK(cofacets.size() == 12);
// Is face check
Vertex v1(10, 0);
- Partition omega1 = {Part({5}), Part({0,1,2,3,4,6,7,8,9,10})};
+ Partition omega1 = {Part({5}), Part({0, 1, 2, 3, 4, 6, 7, 8, 9, 10})};
Simplex_handle s1(v1, omega1);
- Vertex v2(10, 0); v2[1] = -1;
- Partition omega2 = {Part({1}), Part({5}), Part({2}), Part({3,7}), Part({4,9}), Part({0,6,8}), Part({10})};
+ Vertex v2(10, 0);
+ v2[1] = -1;
+ Partition omega2 = {Part({1}), Part({5}), Part({2}), Part({3, 7}), Part({4, 9}), Part({0, 6, 8}), Part({10})};
Simplex_handle s2(v2, omega2);
BOOST_CHECK(s.is_face_of(s));
BOOST_CHECK(s1.is_face_of(s));