MQLUNIT
Public Member Functions | List of all members
MQLUNIT_ComparisonCompactor Class Reference

Used to compact the output of the difference between two strings. More...

Public Member Functions

 MQLUNIT_ComparisonCompactor (const int contextLength, const string expected, const string actual)
 Constructor : create a new string difference compactor. More...
 
string compact (const string message)
 Creates a compacted string comparison failure description. More...
 

Detailed Description

Used to compact the output of the difference between two strings.

Constructor & Destructor Documentation

◆ MQLUNIT_ComparisonCompactor()

MQLUNIT_ComparisonCompactor::MQLUNIT_ComparisonCompactor ( const int  contextLength,
const string  expected,
const string  actual 
)
inline

Constructor : create a new string difference compactor.

Parameters
contextLength: number of characters at which strings are going to be compacted
expected: expected result to be compacted
actual: actual result to be compacted

Member Function Documentation

◆ compact()

string MQLUNIT_ComparisonCompactor::compact ( const string  message)

Creates a compacted string comparison failure description.

Parameters
message: a failure description

The documentation for this class was generated from the following file:

Copyright © 2017 Eneset Group Trust