mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Piecemeal includes in extra-tests
This commit is contained in:
parent
17281c09c3
commit
2b696c4388
@ -3,7 +3,7 @@
|
|||||||
// and expressions in assertion macros are not run.
|
// and expressions in assertion macros are not run.
|
||||||
|
|
||||||
#include <catch2/catch_default_main.hpp>
|
#include <catch2/catch_default_main.hpp>
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <catch2/catch_default_main.hpp>
|
#include <catch2/catch_default_main.hpp>
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
|
||||||
TEST_CASE("Tests that run") {
|
TEST_CASE("Tests that run") {
|
||||||
// All of these should be run and be reported
|
// All of these should be run and be reported
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <catch2/catch_default_main.hpp>
|
#include <catch2/catch_default_main.hpp>
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
[[noreturn]]
|
[[noreturn]]
|
||||||
|
@ -10,7 +10,7 @@ std::string fallbackStringifier(T const&) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include <catch2/catch_default_main.hpp>
|
#include <catch2/catch_default_main.hpp>
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
|
||||||
struct foo {
|
struct foo {
|
||||||
explicit operator bool() const {
|
explicit operator bool() const {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// will be deleted soon :-)
|
// will be deleted soon :-)
|
||||||
|
|
||||||
#include <catch2/catch_default_main.hpp>
|
#include <catch2/catch_default_main.hpp>
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
|
||||||
struct Hidden {};
|
struct Hidden {};
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
// Test that the benchmarking support macros compile properly with the single header
|
// Test that the benchmarking support macros compile properly with the single header
|
||||||
|
|
||||||
#include <catch2/catch_default_main.hpp>
|
#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 {
|
namespace {
|
||||||
std::uint64_t factorial(std::uint64_t number) {
|
std::uint64_t factorial(std::uint64_t number) {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <catch2/catch_default_main.hpp>
|
#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]") {
|
TEST_CASE("Catch2 did survive compilation with windows.h", "[compile-test]") {
|
||||||
SUCCEED();
|
SUCCEED();
|
||||||
|
Loading…
Reference in New Issue
Block a user