summaryrefslogtreecommitdiff
path: root/indra/test/lltut.cpp
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2009-10-07 17:51:28 -0700
committerbrad kittenbrink <brad@lindenlab.com>2009-10-07 17:51:28 -0700
commit50247533f99f374be71728cc5ca00f0444189a9f (patch)
treec1505ec3ec9c054447fb98968c9299e502857000 /indra/test/lltut.cpp
parent146e084af3344ada737340115c5fa063c0aab6b3 (diff)
parentd885db79f94ee3d6a2b4ed7febe7beb69d0c7d51 (diff)
Merged latest viewer/login-api with latest viewer/viewer-20
Diffstat (limited to 'indra/test/lltut.cpp')
-rw-r--r--indra/test/lltut.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/test/lltut.cpp b/indra/test/lltut.cpp
index 201e174f9c..e4e0de1ff1 100644
--- a/indra/test/lltut.cpp
+++ b/indra/test/lltut.cpp
@@ -76,9 +76,13 @@ namespace tut
void ensure_equals(const char* m, const LLSD& actual,
const LLSD& expected)
+ {
+ ensure_equals(std::string(m), actual, expected);
+ }
+
+ void ensure_equals(const std::string& msg, const LLSD& actual,
+ const LLSD& expected)
{
- const std::string& msg = m ? m : "";
-
ensure_equals(msg + " type", actual.type(), expected.type());
switch (actual.type())
{
@@ -128,7 +132,7 @@ namespace tut
{
ensure_equals(msg + " map keys",
actual_iter->first, expected_iter->first);
- ensure_equals((msg + "[" + actual_iter->first + "]").c_str(),
+ ensure_equals(msg + "[" + actual_iter->first + "]",
actual_iter->second, expected_iter->second);
++actual_iter;
++expected_iter;
@@ -141,7 +145,7 @@ namespace tut
for(int i = 0; i < actual.size(); ++i)
{
- ensure_equals((msg + llformat("[%d]", i)).c_str(),
+ ensure_equals(msg + llformat("[%d]", i),
actual[i], expected[i]);
}
return;