make output code more readable
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@372 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
75722359cf
commit
3b596259ec
1 changed files with 8 additions and 6 deletions
|
@ -61,12 +61,14 @@ void TestCase(const string& fmt, T value) {
|
|||
const int i2 = snprintf(buf, sizeof(buf), fmt.c_str(), value);
|
||||
#endif
|
||||
|
||||
if (i1 != i2 || s != buf) {
|
||||
cout <<
|
||||
"\nReference: " << i2 <<
|
||||
"; Actual: " << i1 << "\nV: [" << value << "]\nF: [" <<
|
||||
fmt << "]\n" <<
|
||||
"R: [" << buf << "]\nA: [" << s.c_str() << "]\n";
|
||||
if (i1 != i2 || s != buf)
|
||||
{
|
||||
cout << endl
|
||||
<< "Reference: " << i2 << "; Actual: " << i1 << ", Difference = " << i2-i1 << endl
|
||||
<< "V: [" << value << "]" << endl
|
||||
<< "F: [" << fmt << "]" << endl
|
||||
<< "R: [" << buf << "]" << endl
|
||||
<< "A: [" << s.c_str() << "]" << endl;
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue