Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/examples/311-Gen-CustomCapture.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-01-21 14:46:07 +0100
committerMartin Hořeňovský2020-01-21 14:46:07 +0100
commit17281c09c3f6ea3a04adfc12a651bcd97bcdc496 (patch)
tree4246ffea832877f8173c735ab286608574f96ff5 /examples/311-Gen-CustomCapture.cpp
parent26f78f96aa6eed4be97281b5b740ab0cf0466c48 (diff)
downloadcatch3-17281c09c3f6ea3a04adfc12a651bcd97bcdc496.tar.gz
Convert examples to piecemeal includes
Diffstat (limited to 'examples/311-Gen-CustomCapture.cpp')
-rw-r--r--examples/311-Gen-CustomCapture.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/311-Gen-CustomCapture.cpp b/examples/311-Gen-CustomCapture.cpp
index da6d686f..35de7afc 100644
--- a/examples/311-Gen-CustomCapture.cpp
+++ b/examples/311-Gen-CustomCapture.cpp
@@ -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.