Cosmetic fixes (whitespace and spelling)

This commit is contained in:
Martin Hořeňovský 2017-05-27 14:42:54 +02:00
parent ea48ae0f75
commit 377c9a746d
13 changed files with 30 additions and 31 deletions

View File

@ -29,7 +29,7 @@
# The following variables affect the behavior of the script: # # The following variables affect the behavior of the script: #
# # # #
# PARSE_CATCH_TESTS_VERBOSE (Default OFF) # # PARSE_CATCH_TESTS_VERBOSE (Default OFF) #
# -- enabels debug messages # # -- enables debug messages #
# # # #
#==================================================================================================# #==================================================================================================#
@ -61,7 +61,7 @@ endfunction()
# Worker function # Worker function
function(ParseFile SourceFile TestTarget) function(ParseFile SourceFile TestTarget)
# accroding to CMake docs EXISTS behavior is well-defined only for full paths. # According to CMake docs EXISTS behavior is well-defined only for full paths.
get_filename_component(SourceFile ${SourceFile} ABSOLUTE) get_filename_component(SourceFile ${SourceFile} ABSOLUTE)
if(NOT EXISTS ${SourceFile}) if(NOT EXISTS ${SourceFile})
message(WARNING "Cannot find source file: ${SourceFile}") message(WARNING "Cannot find source file: ${SourceFile}")

View File

@ -57,16 +57,16 @@
#include <crtdbg.h> #include <crtdbg.h>
class LeakDetector { class LeakDetector {
public: public:
LeakDetector() { LeakDetector() {
int flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG); int flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
flag |= _CRTDBG_LEAK_CHECK_DF; flag |= _CRTDBG_LEAK_CHECK_DF;
flag |= _CRTDBG_ALLOC_MEM_DF; flag |= _CRTDBG_ALLOC_MEM_DF;
_CrtSetDbgFlag(flag); _CrtSetDbgFlag(flag);
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG); _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
// Change this to leaking allocation's number to break there // Change this to leaking allocation's number to break there
_CrtSetBreakAlloc(-1); _CrtSetBreakAlloc(-1);
} }
}; };
#else #else
class LeakDetector {}; class LeakDetector {};

View File

@ -33,8 +33,8 @@ namespace Catch {
template<typename T> STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator && ( T const& ); template<typename T> STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator && ( T const& );
template<typename T> STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator || ( T const& ); template<typename T> STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator || ( T const& );
private: private:
DecomposedExpression& operator = (DecomposedExpression const&); DecomposedExpression& operator = (DecomposedExpression const&);
}; };
struct AssertionInfo struct AssertionInfo

View File

@ -18,7 +18,7 @@ extern "C" int wmain (int argc, wchar_t * argv[], wchar_t * []) {
int main (int argc, char * argv[]) { int main (int argc, char * argv[]) {
#endif #endif
int result = Catch::Session().run( argc, argv ); int result = Catch::Session().run( argc, argv );
return ( result < 0xff ? result : 0xff ); return ( result < 0xff ? result : 0xff );
} }

View File

@ -9,7 +9,6 @@
TEST_CASE( "Character pretty printing" ){ TEST_CASE( "Character pretty printing" ){
//
SECTION("Specifically escaped"){ SECTION("Specifically escaped"){
char tab = '\t'; char tab = '\t';
char newline = '\n'; char newline = '\n';