More AssertionResult refactoring

This commit is contained in:
Phil Nash 2012-10-24 21:59:47 +01:00
parent 1dd56d4d2b
commit e04e74f896
12 changed files with 95 additions and 112 deletions

View file

@ -165,9 +165,9 @@ namespace Catch {
startSpansLazily();
if( !assertionResult.getFilename().empty() ) {
if( !assertionResult.getSourceInfo().empty() ) {
TextColour colour( TextColour::FileName );
m_config.stream << SourceLineInfo( assertionResult.getFilename(), assertionResult.getLine() );
m_config.stream << assertionResult.getSourceInfo();
}
if( assertionResult.hasExpression() ) {