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

View File

@@ -6,11 +6,11 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include "catch_test_spec_parser.h"
#include "catch_test_case_info.h"
#include "catch_config.hpp"
#include "catch_commandline.h"
#include <catch2/catch.hpp>
#include <catch2/catch_test_spec_parser.h>
#include <catch2/catch_test_case_info.h>
#include <catch2/catch_config.hpp>
#include <catch2/catch_commandline.h>
#ifdef __clang__
# pragma clang diagnostic ignored "-Wc++98-compat"

View File

@@ -3,7 +3,7 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#if defined(_MSC_VER)
#pragma warning(push)

View File

@@ -1,4 +1,4 @@
#include "catch.hpp"
#include <catch2/catch.hpp>
// Tests of generator implementation details
TEST_CASE("Generators internals", "[generators][internals]") {

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>
#if defined(CATCH_CONFIG_ENABLE_BENCHMARKING)
namespace {
struct manual_clock {

View File

@@ -5,10 +5,10 @@
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch_suppress_warnings.h"
#include "catch_test_case_tracker.h"
#include <catch2/catch_suppress_warnings.h>
#include <catch2/catch_test_case_tracker.h>
#include "catch.hpp"
#include <catch2/catch.hpp>
using namespace Catch;

View File

@@ -5,9 +5,9 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include <catch2/catch.hpp>
#include "catch_random_number_generator.h"
#include <catch2/catch_random_number_generator.h>
TEST_CASE("Our PCG implementation provides expected results for known seeds", "[rng]") {
Catch::SimplePcg32 rng;

View File

@@ -1,6 +1,6 @@
#include "catch_stringref.h"
#include <catch2/catch_stringref.h>
#include "catch.hpp"
#include <catch2/catch.hpp>
#include <cstring>

View File

@@ -1,6 +1,6 @@
#include "catch_string_manip.h"
#include <catch2/catch_string_manip.h>
#include "catch.hpp"
#include <catch2/catch.hpp>
static const char * const no_whitespace = "There is no extra whitespace here";
static const char * const leading_whitespace = " \r \t\n There is no extra whitespace here";

View File

@@ -6,8 +6,8 @@
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch.hpp"
#include "catch_tag_alias_registry.h"
#include <catch2/catch.hpp>
#include <catch2/catch_tag_alias_registry.h>
TEST_CASE( "Tag alias can be registered against tag patterns" ) {

View File

@@ -1,6 +1,6 @@
#include "catch.hpp"
#include <catch2/catch.hpp>
#include "catch_enum_values_registry.h"
#include <catch2/catch_enum_values_registry.h>
enum class EnumClass3 { Value1, Value2, Value3, Value4 };

View File

@@ -1,5 +1,5 @@
#include "catch.hpp"
#include "catch_xmlwriter.h"
#include <catch2/catch.hpp>
#include <catch2/catch_xmlwriter.h>
#include <sstream>