diff options
| author | Phil Nash | 2015-11-04 18:01:28 +0000 |
|---|---|---|
| committer | Phil Nash | 2015-11-04 18:04:15 +0000 |
| commit | e91738103ce8dc6c0ca6c096c66b79d25f3c18d6 (patch) | |
| tree | de02bafd4199f2478d6ac9fa4c74bf9adc3934df /projects/SelfTest/GeneratorTests.cpp | |
| parent | 8c32b49d5fd2329b20c684f21fe7098cd6da95b8 (diff) | |
| download | catch3-e91738103ce8dc6c0ca6c096c66b79d25f3c18d6.tar.gz | |
Stripped trailing whitespace from all source code lines
(replaces need for PRs #310 and #504)
Diffstat (limited to 'projects/SelfTest/GeneratorTests.cpp')
| -rw-r--r-- | projects/SelfTest/GeneratorTests.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/projects/SelfTest/GeneratorTests.cpp b/projects/SelfTest/GeneratorTests.cpp index a961b698..af08b1d3 100644 --- a/projects/SelfTest/GeneratorTests.cpp +++ b/projects/SelfTest/GeneratorTests.cpp @@ -19,10 +19,10 @@ inline int multiply( int a, int b ) CATCH_TEST_CASE( "Generators over two ranges", "[generators]" ) { using namespace Catch::Generators; - + int i = CATCH_GENERATE( between( 1, 5 ).then( values( 15, 20, 21 ).then( 36 ) ) ); int j = CATCH_GENERATE( between( 100, 107 ) ); - + CATCH_REQUIRE( multiply( i, 2 ) == i*2 ); CATCH_REQUIRE( multiply( j, 2 ) == j*2 ); } @@ -32,11 +32,11 @@ struct IntPair { int first, second; }; CATCH_TEST_CASE( "Generator over a range of pairs", "[generators]" ) { using namespace Catch::Generators; - + IntPair p[] = { { 0, 1 }, { 2, 3 } }; - + IntPair* i = CATCH_GENERATE( between( p, &p[1] ) ); - + CATCH_REQUIRE( i->first == i->second-1 ); - + } |