Added ability to show “invisibles” in strings (just tabs and newline chars, for now).

This commit is contained in:
Phil Nash
2014-04-22 18:23:42 +01:00
parent f219194199
commit 7059b2cdac
4 changed files with 30 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ namespace Catch {
shouldDebugBreak( false ),
noThrow( false ),
showHelp( false ),
showInvisibles( false ),
abortAfter( -1 ),
verbosity( Verbosity::Normal ),
warnings( WarnAbout::Nothing ),
@@ -50,6 +51,7 @@ namespace Catch {
bool shouldDebugBreak;
bool noThrow;
bool showHelp;
bool showInvisibles;
int abortAfter;
@@ -154,6 +156,7 @@ namespace Catch {
}
bool showHelp() const { return m_data.showHelp; }
bool showInvisibles() const { return m_data.showInvisibles; }
// IConfig interface
virtual bool allowThrows() const { return !m_data.noThrow; }