summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/llstring_test.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-08-19 16:45:39 -0700
committerRichard Linden <none@none>2011-08-19 16:45:39 -0700
commit7ff36a724db0765de38370e054ef3393a65443a7 (patch)
treeea711c9f3c375f78d7f8ebd1d601e3c1846bf17e /indra/llcommon/tests/llstring_test.cpp
parent93645cf55cb276c098232e81b9b548968ab4e4b3 (diff)
better unit test for nested brackets in string replacement
Diffstat (limited to 'indra/llcommon/tests/llstring_test.cpp')
-rw-r--r--indra/llcommon/tests/llstring_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/tests/llstring_test.cpp b/indra/llcommon/tests/llstring_test.cpp
index dd4bc0b039..6a1cbf652a 100644
--- a/indra/llcommon/tests/llstring_test.cpp
+++ b/indra/llcommon/tests/llstring_test.cpp
@@ -626,11 +626,11 @@ namespace tut
ensure_equals("LLStringUtil::format: Assorted Test2 result count", 9, subcount);
// Test on nested brackets
- std::string srcs6 = "[[TRICK1]][[A]]";
+ std::string srcs6 = "[[TRICK1]][[A]][[B]][[AAA]][[BBB]][[TRICK2]][[KEYLONGER]][[KEYSHORTER]]?[[DELETE]]";
s = srcs6;
subcount = LLStringUtil::format(s, fmt_map);
- ensure_equals("LLStringUtil::format: Assorted Test2 result", s, "[[A]][a]");
- ensure_equals("LLStringUtil::format: Assorted Test2 result count", 2, subcount);
+ ensure_equals("LLStringUtil::format: Assorted Test2 result", s, "[[A]][a][b][aaa][bbb][[A]][short][Am I not a long string?]?[]");
+ ensure_equals("LLStringUtil::format: Assorted Test2 result count", 9, subcount);
// Test an assorted substitution