diff --git a/.gitignore b/.gitignore index 835e80a..e896f28 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ Release *.xcuserstate .DS_Store xcuserdata -CatchSelfTest.xcscheme \ No newline at end of file +CatchSelfTest.xcscheme +Breakpoints.xcbkptlist \ No newline at end of file diff --git a/include/internal/catch_console_colour_impl.hpp b/include/internal/catch_console_colour_impl.hpp index d1d49f3..caad407 100644 --- a/include/internal/catch_console_colour_impl.hpp +++ b/include/internal/catch_console_colour_impl.hpp @@ -16,7 +16,7 @@ #ifdef CATCH_PLATFORM_WINDOWS -#include "windows.h" +#include namespace Catch { diff --git a/include/internal/catch_interfaces_reporter.h b/include/internal/catch_interfaces_reporter.h index baa1675..f7690d5 100644 --- a/include/internal/catch_interfaces_reporter.h +++ b/include/internal/catch_interfaces_reporter.h @@ -136,7 +136,7 @@ namespace Catch std::string::size_type start = str.find_first_not_of( "\n\r\t " ); std::string::size_type end = str.find_last_not_of( "\n\r\t " ); - return start < end ? str.substr( start, 1+end-start ) : ""; + return start != std::string::npos ? str.substr( start, 1+end-start ) : ""; } diff --git a/projects/SelfTest/MiscTests.cpp b/projects/SelfTest/MiscTests.cpp index f73f742..622a30f 100644 --- a/projects/SelfTest/MiscTests.cpp +++ b/projects/SelfTest/MiscTests.cpp @@ -169,3 +169,9 @@ TEST_CASE( "./misc/xmlentitycheck", "" ) // No test } } + +TEST_CASE( "./manual/onechar", "send a single char to INFO" ) +{ + INFO(3); + REQUIRE(false); +} diff --git a/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/xcuserdata/Phil.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist b/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/xcuserdata/Phil.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist index 05301bc..3cc315e 100644 --- a/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/xcuserdata/Phil.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist +++ b/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/xcuserdata/Phil.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist @@ -2,4 +2,20 @@ + + + +