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

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/GeneratorTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2015-11-04 18:01:28 +0000
committerPhil Nash2015-11-04 18:04:15 +0000
commite91738103ce8dc6c0ca6c096c66b79d25f3c18d6 (patch)
treede02bafd4199f2478d6ac9fa4c74bf9adc3934df /projects/SelfTest/GeneratorTests.cpp
parent8c32b49d5fd2329b20c684f21fe7098cd6da95b8 (diff)
downloadcatch3-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.cpp12
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 );
-
+
}