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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-01-20 23:24:04 +0100
committerMartin Hořeňovský2020-01-21 10:03:54 +0100
commit26f78f96aa6eed4be97281b5b740ab0cf0466c48 (patch)
tree1ed75a6974a364c78f51c426b0a0044217260952 /tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp
parentc381b49c60e7c1d6b354b67ca168b2af58c42f13 (diff)
downloadcatch3-26f78f96aa6eed4be97281b5b740ab0cf0466c48.tar.gz
Start using piecemeal includes in test files
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp')
-rw-r--r--tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp b/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp
index a8aaf967..3406480e 100644
--- a/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp
@@ -1,4 +1,7 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_approx.h>
+#include <catch2/catch_test_macros.hpp>
+#include <catch2/catch_generators_generic.hpp>
+#include <catch2/catch_generators_specific.hpp>
// Tests of generator implementation details
TEST_CASE("Generators internals", "[generators][internals]") {
@@ -175,6 +178,7 @@ TEST_CASE("Generators internals", "[generators][internals]") {
}
SECTION("Floating Point") {
+ using Catch::Detail::Approx;
SECTION("Exact") {
const auto rangeStart = -1.;
const auto rangeEnd = 1.;