Rewrite includes in tests to use library's include paths

This commit is contained in:
Martin Hořeňovský
2019-12-02 12:23:10 +01:00
parent 82cc5bc034
commit 90e2549cec
45 changed files with 67 additions and 69 deletions
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <cmath>
+1 -1
View File
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
namespace { namespace BDDTests {
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <map>
+1 -1
View File
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <array>
namespace{ namespace ClassTests {
@@ -30,7 +30,7 @@ std::ostream& operator<<(std::ostream& out, foo::helper_1403 const&) {
}
///////////////////////////////
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <cstring>
@@ -14,7 +14,7 @@
# endif
#endif
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <string>
#include <limits>
@@ -26,7 +26,7 @@ std::ostream& operator<<(std::ostream& o, truthy) {
} // end anonymous namespace
#include "catch.hpp"
#include <catch2/catch.hpp>
TEST_CASE( "Reconstruction should be based on stringification: #914" , "[Decomposition][failing][.]") {
CHECK(truthy(false));
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include <catch2/catch.hpp>
namespace {
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <string>
#include <stdexcept>
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <cstring>
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <sstream>
#include <algorithm>
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <iostream>
TEST_CASE( "INFO and WARN do not abort tests", "[messages][.]" ) {
+1 -1
View File
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#ifdef __clang__
# pragma clang diagnostic ignored "-Wc++98-compat"
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include <catch2/catch.hpp>
#if defined(CATCH_CONFIG_CPP17_BYTE)
@@ -1,5 +1,5 @@
#define CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <chrono>
#include <cstdint>
@@ -6,7 +6,7 @@
*/
#define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <map>
#include <set>
@@ -1,5 +1,5 @@
#define CATCH_CONFIG_ENABLE_OPTIONAL_STRINGMAKER
#include "catch.hpp"
#include <catch2/catch.hpp>
#if defined(CATCH_CONFIG_CPP17_OPTIONAL)
@@ -1,5 +1,5 @@
#define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER
#include "catch.hpp"
#include <catch2/catch.hpp>
TEST_CASE( "std::pair<int,std::string> -> toString", "[toString][pair]" ) {
std::pair<int,std::string> value( 34, "xyzzy" );
@@ -1,5 +1,5 @@
#define CATCH_CONFIG_ENABLE_TUPLE_STRINGMAKER
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <tuple>
@@ -1,5 +1,5 @@
#define CATCH_CONFIG_ENABLE_VARIANT_STRINGMAKER
#include "catch.hpp"
#include <catch2/catch.hpp>
#if defined(CATCH_CONFIG_CPP17_VARIANT)
@@ -1,4 +1,4 @@
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <vector>
#include <array>
@@ -13,7 +13,7 @@ std::string fallbackStringifier(T const&) {
}
#define CATCH_CONFIG_FALLBACK_STRINGIFIER fallbackStringifier
#include "catch.hpp"
#include <catch2/catch.hpp>
@@ -15,7 +15,7 @@
// that is triggered when compiling as Win32|Release
#endif
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <stdio.h>
#include <sstream>
@@ -6,7 +6,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
TEST_CASE()