Piecemeal includes in extra-tests

This commit is contained in:
Martin Hořeňovský 2020-01-21 15:03:07 +01:00
parent 17281c09c3
commit 2b696c4388
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
7 changed files with 9 additions and 7 deletions

View File

@ -3,7 +3,7 @@
// and expressions in assertion macros are not run.
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <iostream>

View File

@ -1,5 +1,5 @@
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
TEST_CASE("Tests that run") {
// All of these should be run and be reported

View File

@ -1,5 +1,5 @@
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
namespace Catch {
[[noreturn]]

View File

@ -10,7 +10,7 @@ std::string fallbackStringifier(T const&) {
}
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
struct foo {
explicit operator bool() const {

View File

@ -5,7 +5,7 @@
// will be deleted soon :-)
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
struct Hidden {};

View File

@ -2,7 +2,9 @@
// Test that the benchmarking support macros compile properly with the single header
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/benchmark/catch_benchmark.hpp>
#include <catch2/catch_generators_specific.hpp>
namespace {
std::uint64_t factorial(std::uint64_t number) {

View File

@ -5,7 +5,7 @@
#include <windows.h>
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
TEST_CASE("Catch2 did survive compilation with windows.h", "[compile-test]") {
SUCCEED();