mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-28 07:29:25 +00:00
Convert examples to piecemeal includes
This commit is contained in:
parent
26f78f96aa
commit
17281c09c3
8 changed files with 22 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue