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

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/TestMain.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-01-26 23:13:12 +0100
committerMartin Hořeňovský2017-01-26 23:13:12 +0100
commitc390c4cb9f9ae384451a5b8cda08aebf34407207 (patch)
tree79cb91867deabac9974094a6b2323ea8b8f2a2f4 /projects/SelfTest/TestMain.cpp
parent60a9ac7e65a57d82a92eebb7c8c6c1111a75897e (diff)
downloadcatch3-c390c4cb9f9ae384451a5b8cda08aebf34407207.tar.gz
Fixed inconsistent and trailing whitespace
This means that all tabs used in indentation are now 4 spaces and that there should be no more trailing whitespace. Ill also look into creating a pre-commit hook that will prevent this from happening in the future. Fixes #105
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
-rw-r--r--projects/SelfTest/TestMain.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp
index db506688..2a1769c3 100644
--- a/projects/SelfTest/TestMain.cpp
+++ b/projects/SelfTest/TestMain.cpp
@@ -196,13 +196,13 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]"
}
SECTION( "use-colour", "") {
-
+
using Catch::UseColour;
-
+
SECTION( "without option", "" ) {
const char* argv[] = { "test" };
CHECK_NOTHROW( parseIntoConfig( argv, config ) );
-
+
REQUIRE( config.useColour == UseColour::Auto );
}
@@ -216,14 +216,14 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]"
SECTION( "yes", "" ) {
const char* argv[] = { "test", "--use-colour", "yes" };
CHECK_NOTHROW( parseIntoConfig( argv, config ) );
-
+
REQUIRE( config.useColour == UseColour::Yes );
}
SECTION( "no", "" ) {
const char* argv[] = { "test", "--use-colour", "no" };
CHECK_NOTHROW( parseIntoConfig( argv, config ) );
-
+
REQUIRE( config.useColour == UseColour::No );
}