summaryrefslogtreecommitdiff
path: root/src/Witness_complex/test
diff options
context:
space:
mode:
authorskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-19 08:19:49 +0000
committerskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-19 08:19:49 +0000
commitfe79f2dcfd8b1540485d8a81fa7cedd07f5c8fac (patch)
treee524046b049b3596056e1d42bee8d339c9fcbf3f /src/Witness_complex/test
parent2fbcf3afe9bf246774ace4ff8b3524b45b2a869b (diff)
Clément's remarks
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@1735 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: c3bc66a081a0bc73874246e1e12ab98c6bf2a53e
Diffstat (limited to 'src/Witness_complex/test')
-rw-r--r--src/Witness_complex/test/test_simple_witness_complex.cpp34
1 files changed, 4 insertions, 30 deletions
diff --git a/src/Witness_complex/test/test_simple_witness_complex.cpp b/src/Witness_complex/test/test_simple_witness_complex.cpp
index 90b6cfa2..a0a1b36c 100644
--- a/src/Witness_complex/test/test_simple_witness_complex.cpp
+++ b/src/Witness_complex/test/test_simple_witness_complex.cpp
@@ -1,25 +1,3 @@
-/* This file is part of the Gudhi Library. The Gudhi library
- * (Geometric Understanding in Higher Dimensions) is a generic C++
- * library for computational topology.
- *
- * Author(s): Siargey Kachanovich
- *
- * Copyright (C) 2016 INRIA (France)
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE "simple_witness_complex"
#include <boost/test/unit_test.hpp>
@@ -79,10 +57,8 @@ BOOST_AUTO_TEST_CASE(simple_witness_complex) {
witnesses.push_back(Point_d(std::vector<FT>{ 2,-1}));
witnesses.push_back(Point_d(std::vector<FT>{ 2, 1}));
- WitnessComplex witness_complex(landmarks.begin(),
- landmarks.end(),
- witnesses.begin(),
- witnesses.end());
+ WitnessComplex witness_complex(landmarks,
+ witnesses);
witness_complex.create_complex(complex, 0);
std::cout << "complex.num_simplices() = " << complex.num_simplices() << std::endl;
@@ -93,10 +69,8 @@ BOOST_AUTO_TEST_CASE(simple_witness_complex) {
std::cout << "relaxed_complex.num_simplices() = " << relaxed_complex.num_simplices() << std::endl;
BOOST_CHECK(relaxed_complex.num_simplices() == 239);
- StrongWitnessComplex strong_witness_complex(landmarks.begin(),
- landmarks.end(),
- witnesses.begin(),
- witnesses.end());
+ StrongWitnessComplex strong_witness_complex(landmarks,
+ witnesses);
strong_witness_complex.create_complex(strong_relaxed_complex, 9.1);