diff options
author | Oz Linden <oz@lindenlab.com> | 2014-10-22 11:59:20 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2014-10-22 11:59:20 -0400 |
commit | 7b6554db3df63e1bd948c516c9ced5dafd588821 (patch) | |
tree | d7be80467eabe966ddbebf209f4a3a6cafa8f922 /indra/test/lltut.cpp | |
parent | 428adcb35c2d68700adfebfd14ab1dbae3af654e (diff) |
added quoting to clarify failure messages
Diffstat (limited to 'indra/test/lltut.cpp')
-rwxr-xr-x | indra/test/lltut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/test/lltut.cpp b/indra/test/lltut.cpp index c43a8f0c7d..a183cef9a9 100755 --- a/indra/test/lltut.cpp +++ b/indra/test/lltut.cpp @@ -158,8 +158,8 @@ namespace tut if( actual.find(expectedStart, 0) != 0 ) { std::stringstream ss; - ss << msg << ": " << "expected to find " << expectedStart - << " at start of actual " << actual; + ss << msg << ": " << "expected to find '" << expectedStart + << "' at start of actual '" << actual << "'"; throw failure(ss.str().c_str()); } } @@ -172,8 +172,8 @@ namespace tut != (actual.size() - expectedEnd.size()) ) { std::stringstream ss; - ss << msg << ": " << "expected to find " << expectedEnd - << " at end of actual " << actual; + ss << msg << ": " << "expected to find '" << expectedEnd + << "' at end of actual '" << actual << "'"; throw failure(ss.str().c_str()); } } @@ -184,8 +184,8 @@ namespace tut if( actual.find(expectedSubString, 0) == std::string::npos ) { std::stringstream ss; - ss << msg << ": " << "expected to find " << expectedSubString - << " in actual " << actual; + ss << msg << ": " << "expected to find '" << expectedSubString + << "' in actual '" << actual << "'"; throw failure(ss.str().c_str()); } } |