mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-06 07:15:40 +02:00
Rewrite includes in tests to use library's include paths
This commit is contained in:
@@ -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"
|
||||
|
@@ -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)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "catch.hpp"
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
// Tests of generator implementation details
|
||||
TEST_CASE("Generators internals", "[generators][internals]") {
|
||||
|
@@ -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 {
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include "catch_stringref.h"
|
||||
#include <catch2/catch_stringref.h>
|
||||
|
||||
#include "catch.hpp"
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
@@ -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";
|
||||
|
@@ -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" ) {
|
||||
|
||||
|
@@ -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 };
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "catch_xmlwriter.h"
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_xmlwriter.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
|
Reference in New Issue
Block a user