diff --git a/tests/test_mincl.cpp b/tests/test_mincl.cpp deleted file mode 100644 index 2eb9fc87..00000000 --- a/tests/test_mincl.cpp +++ /dev/null @@ -1,27 +0,0 @@ -//****************************************************************************// -// Copyright (C) 2018 Florent Hivert , // -// // -// Distributed under the terms of the GNU General Public License (GPL) // -// // -// This code 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. // -// // -// The full text of the GPL is available at: // -// // -// http://www.gnu.org/licenses/ // -//****************************************************************************// - -#define BOOST_TEST_MODULE MultIncl_Test - -#include - -int foo0(); // in test_mincl0.cpp -int foo1(); // in test_mincl1.cpp - -BOOST_AUTO_TEST_SUITE(MultIncl) -BOOST_AUTO_TEST_CASE(MultInclFoo0) { BOOST_CHECK_EQUAL(foo0(), 0); } -BOOST_AUTO_TEST_CASE(MultInclFoo1) { BOOST_CHECK_EQUAL(foo1(), 1); } -BOOST_AUTO_TEST_SUITE_END() - diff --git a/tests/test_mincl0.cpp b/tests/test_mincl0.cpp deleted file mode 100644 index c4753ece..00000000 --- a/tests/test_mincl0.cpp +++ /dev/null @@ -1,19 +0,0 @@ -//****************************************************************************// -// Copyright (C) 2018 Florent Hivert , // -// // -// Distributed under the terms of the GNU General Public License (GPL) // -// // -// This code 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. // -// // -// The full text of the GPL is available at: // -// // -// http://www.gnu.org/licenses/ // -//****************************************************************************// - -// We check that multiple inclusion of HPCombi works - -#define CONST_TO_BE_CHANGED 0 -#include "test_mincl_common.cpp" diff --git a/tests/test_mincl1.cpp b/tests/test_mincl1.cpp deleted file mode 100644 index 2ae4c041..00000000 --- a/tests/test_mincl1.cpp +++ /dev/null @@ -1,19 +0,0 @@ -//****************************************************************************// -// Copyright (C) 2018 Florent Hivert , // -// // -// Distributed under the terms of the GNU General Public License (GPL) // -// // -// This code 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. // -// // -// The full text of the GPL is available at: // -// // -// http://www.gnu.org/licenses/ // -//****************************************************************************// - -// We check that multiple inclusion of HPCombi works - -#define CONST_TO_BE_CHANGED 1 -#include "test_mincl_common.cpp" diff --git a/tests/test_mincl_common.cpp b/tests/test_mincl_common.cpp deleted file mode 100644 index 56f74d5d..00000000 --- a/tests/test_mincl_common.cpp +++ /dev/null @@ -1,35 +0,0 @@ -//****************************************************************************// -// Copyright (C) 2018 Florent Hivert , // -// // -// Distributed under the terms of the GNU General Public License (GPL) // -// // -// This code 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. // -// // -// The full text of the GPL is available at: // -// // -// http://www.gnu.org/licenses/ // -//****************************************************************************// - -// We check that multiple inclusion of HPCombi works - -#include "hpcombi.hpp" - -#define PPCAT_NX(A, B) A ## B -#define PPCAT(A, B) PPCAT_NX(A, B) - -int PPCAT(foo, CONST_TO_BE_CHANGED)() { - HPCombi::Perm16 res = HPCombi::Perm16::one(); - res = res * res; - res = res * res; - res = res * res; - HPCombi::epu8 rnd = HPCombi::random_epu8(255); - rnd = rnd + rnd; - HPCombi::BMat8 resb = HPCombi::BMat8::one(); - resb = resb * resb; - HPCombi::BMat8 rndb = HPCombi::BMat8::random(); - rndb = rndb * rndb; - return CONST_TO_BE_CHANGED; -}