Go to the source code of this file.
|
| TEST_CASE ("Generate random doubles across different ranges", "[generator][example][advanced]") |
|
◆ TEST_CASE()
TEST_CASE |
( |
"Generate random doubles across different ranges" | , |
|
|
"" | [generator][example][advanced] ) |
Definition at line 14 of file 311-Gen-CustomCapture.cpp.
15 {
16
17 using record = std::tuple<double, double>;
18
19 auto r1 =
GENERATE(table<double, double>({
20 record{3, 4},
21 record{-4, -3},
22 record{10, 1000}
23 }));
24
25 auto r2(r1);
26
27
28
29
31 [&r1, r2]{
34 }
35 );
36
38}
#define CATCH_INTERNAL_LINEINFO
auto makeGenerators(GeneratorWrapper< T > &&generator, Gs... moreGenerators) -> Generators< T >
auto generate(SourceLineInfo const &lineInfo, L const &generatorExpression) -> decltype(std::declval< decltype(generatorExpression())>().get())
GeneratorWrapper< T > take(size_t target, GeneratorWrapper< T > &&generator)