From eff99499a1b953be6d451d0351dd921c92b7cf62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Tue, 3 Nov 2020 17:30:37 +0100 Subject: [PATCH] Remove stupidly placed include directives in cpp files ... --- tests/test_BuildInfo.cpp | 5 ----- tests/test_CRSGraph.cpp | 5 ----- tests/test_CastArray.cpp | 5 ----- tests/test_ConsoleManager.cpp | 5 ----- tests/test_Demangle.cpp | 5 ----- tests/test_EscapedString.cpp | 5 ----- tests/test_Exceptions.cpp | 5 ----- tests/test_Partitioner.cpp | 5 ----- 8 files changed, 40 deletions(-) diff --git a/tests/test_BuildInfo.cpp b/tests/test_BuildInfo.cpp index 36c8c79aa..335cc74e4 100644 --- a/tests/test_BuildInfo.cpp +++ b/tests/test_BuildInfo.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_BUILD_INFO_HPP -#define TEST_BUILD_INFO_HPP - #include <catch2/catch.hpp> #include <utils/BuildInfo.hpp> @@ -66,5 +63,3 @@ TEST_CASE("BuildInfo", "[utils]") #endif // PUGS_HAS_PETSC } } - -#endif // TEST_BUILD_INFO_HPP diff --git a/tests/test_CRSGraph.cpp b/tests/test_CRSGraph.cpp index 1759dd213..5c2fc7f28 100644 --- a/tests/test_CRSGraph.cpp +++ b/tests/test_CRSGraph.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_CRS_GRAPH_HPP -#define TEST_CRS_GRAPH_HPP - #include <catch2/catch.hpp> #include <utils/CRSGraph.hpp> @@ -40,5 +37,3 @@ TEST_CASE("CRSGraph", "[utils]") REQUIRE(neighbors.size() == graph.neighbors().size()); REQUIRE(&neighbors[0] == &graph.neighbors()[0]); } - -#endif // TEST_CRS_GRAPH_HPP diff --git a/tests/test_CastArray.cpp b/tests/test_CastArray.cpp index ea3899ce8..6a014045c 100644 --- a/tests/test_CastArray.cpp +++ b/tests/test_CastArray.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_CAST_ARRAY_HPP -#define TEST_CAST_ARRAY_HPP - #include <catch2/catch.hpp> #include <utils/ArrayUtils.hpp> @@ -89,5 +86,3 @@ TEST_CASE("CastArray", "[utils]") } } } - -#endif // TEST_CAST_ARRAY_HPP diff --git a/tests/test_ConsoleManager.cpp b/tests/test_ConsoleManager.cpp index 266185218..4387d7042 100644 --- a/tests/test_ConsoleManager.cpp +++ b/tests/test_ConsoleManager.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_CONSOLE_MANAGER_HPP -#define TEST_CONSOLE_MANAGER_HPP - #include <catch2/catch.hpp> #include <utils/ConsoleManager.hpp> @@ -33,5 +30,3 @@ TEST_CASE("ConsoleManager", "[utils]") rang::setControlMode(saved_control); } } - -#endif // TEST_CONSOLE_MANAGER_HPP diff --git a/tests/test_Demangle.cpp b/tests/test_Demangle.cpp index 057bf9db9..a3489fd2d 100644 --- a/tests/test_Demangle.cpp +++ b/tests/test_Demangle.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_DEMANGLE_HPP -#define TEST_DEMANGLE_HPP - #include <catch2/catch.hpp> #include <utils/Demangle.hpp> @@ -38,5 +35,3 @@ TEST_CASE("Demangle", "[utils]") REQUIRE((std::string{"not_mangled"} == demangle("not_mangled"))); } } - -#endif // TEST_DEMANGLE_HPP diff --git a/tests/test_EscapedString.cpp b/tests/test_EscapedString.cpp index 925ebadbd..3dca01496 100644 --- a/tests/test_EscapedString.cpp +++ b/tests/test_EscapedString.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_ESCAPED_STRING_HPP -#define TEST_ESCAPED_STRING_HPP - #include <catch2/catch.hpp> #include <utils/EscapedString.hpp> @@ -23,5 +20,3 @@ TEST_CASE("EscapedString", "[utils]") REQUIRE(unescapeString(s) == std::string{"foo\'\\\"\?\a\b\f\n\r\t\vbar"}); } } - -#endif // TEST_ESCAPED_STRING_HPP diff --git a/tests/test_Exceptions.cpp b/tests/test_Exceptions.cpp index 720bd40ea..25b181ae1 100644 --- a/tests/test_Exceptions.cpp +++ b/tests/test_Exceptions.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_EXCEPTIONS_HPP -#define TEST_EXCEPTIONS_HPP - #include <catch2/catch.hpp> #include <utils/Exceptions.hpp> @@ -21,5 +18,3 @@ TEST_CASE("Exceptions", "[utils]") REQUIRE(std::string{not_implemented_error.what()} == "not implemented yet: not implemented error"); } } - -#endif // TEST_EXCEPTIONS_HPP diff --git a/tests/test_Partitioner.cpp b/tests/test_Partitioner.cpp index f40663976..9af1fc6c6 100644 --- a/tests/test_Partitioner.cpp +++ b/tests/test_Partitioner.cpp @@ -1,6 +1,3 @@ -#ifndef TEST_PARTITIONER_HPP -#define TEST_PARTITIONER_HPP - #include <catch2/catch.hpp> #include <utils/Messenger.hpp> @@ -87,5 +84,3 @@ TEST_CASE("Partitioner", "[utils]") } } } - -#endif // TEST_PARTITIONER_HPP -- GitLab