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);
|
const int i2 = snprintf(buf, sizeof(buf), fmt.c_str(), value);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (i1 != i2 || s != buf) {
|
if (i1 != i2 || s != buf)
|
||||||
cout <<
|
{
|
||||||
"\nReference: " << i2 <<
|
cout << endl
|
||||||
"; Actual: " << i1 << "\nV: [" << value << "]\nF: [" <<
|
<< "Reference: " << i2 << "; Actual: " << i1 << ", Difference = " << i2-i1 << endl
|
||||||
fmt << "]\n" <<
|
<< "V: [" << value << "]" << endl
|
||||||
"R: [" << buf << "]\nA: [" << s.c_str() << "]\n";
|
<< "F: [" << fmt << "]" << endl
|
||||||
|
<< "R: [" << buf << "]" << endl
|
||||||
|
<< "A: [" << s.c_str() << "]" << endl;
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue