Convert examples to piecemeal includes

This commit is contained in:
Martin Hořeňovský 2020-01-21 14:46:07 +01:00
parent 26f78f96aa
commit 17281c09c3
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
8 changed files with 22 additions and 13 deletions

View file

@ -9,7 +9,9 @@
// per-variable custom capture list, this example shows how to achieve
// that.
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_generators_generic.hpp>
#include <catch2/catch_generators_specific.hpp>
TEST_CASE("Generate random doubles across different ranges",
"[generator][example][advanced]") {
@ -23,7 +25,7 @@ TEST_CASE("Generate random doubles across different ranges",
}));
auto r2(r1);
// This will take r1 by reference and r2 by value.
// Note that there are no advantages for doing so in this example,
// it is done only for expository purposes.