ResultData -> AssertionResultData

This commit is contained in:
Phil Nash 2012-10-16 08:33:13 +01:00
parent c597a893fa
commit a5fa78284d
4 changed files with 7 additions and 7 deletions

View File

@ -13,9 +13,9 @@
namespace Catch {
struct ResultData
struct AssertionResultData
{
ResultData() : resultType( ResultWas::Unknown ) {}
AssertionResultData() : resultType( ResultWas::Unknown ) {}
std::string macroName;
SourceLineInfo lineInfo;
@ -28,7 +28,7 @@ namespace Catch {
class AssertionResult {
public:
AssertionResult();
AssertionResult( const ResultData& data );
AssertionResult( const AssertionResultData& data );
~AssertionResult();
bool ok() const;
@ -44,7 +44,7 @@ namespace Catch {
std::string getTestMacroName() const;
protected:
ResultData m_data;
AssertionResultData m_data;
};
} // end namespace Catch

View File

@ -14,7 +14,7 @@ namespace Catch {
AssertionResult::AssertionResult() {}
AssertionResult::AssertionResult( const ResultData& data ) : m_data( data ) {}
AssertionResult::AssertionResult( const AssertionResultData& data ) : m_data( data ) {}
AssertionResult::~AssertionResult() {}

View File

@ -48,7 +48,7 @@ public:
}
private:
ResultData m_data;
AssertionResultData m_data;
std::string m_lhs, m_rhs, m_op;
bool m_isFalse;
};

View File

@ -65,7 +65,7 @@ namespace Catch {
AssertionResult AssertionResultBuilder::build() const
{
ResultData data = m_data;
AssertionResultData data = m_data;
data.reconstructedExpression = reconstructExpression();
if( m_isFalse ) {
if( m_op == "" ) {