summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/llstring_test.cpp
diff options
context:
space:
mode:
authorDebi King (Dessie) <dessie@lindenlab.com>2011-09-21 16:04:12 -0400
committerDebi King (Dessie) <dessie@lindenlab.com>2011-09-21 16:04:12 -0400
commit8665dee5f6cca501ec94b33e56c0c4de284fd757 (patch)
tree9a3356ac50a7fa084c698092596c6ba3cba59423 /indra/llcommon/tests/llstring_test.cpp
parenta66b5fb8cfc590110bb698d490510d66b6d8b430 (diff)
parent2ae5e8db53e6d89e741cda0ce45e8cf65595bd16 (diff)
reconciled .hgtags
Diffstat (limited to 'indra/llcommon/tests/llstring_test.cpp')
-rw-r--r--indra/llcommon/tests/llstring_test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/tests/llstring_test.cpp b/indra/llcommon/tests/llstring_test.cpp
index 304e91ed92..6a1cbf652a 100644
--- a/indra/llcommon/tests/llstring_test.cpp
+++ b/indra/llcommon/tests/llstring_test.cpp
@@ -624,6 +624,14 @@ namespace tut
subcount = LLStringUtil::format(s, fmt_map);
ensure_equals("LLStringUtil::format: Assorted Test2 result", s, "?Am I not a long string?short[A]bbbaaaba[A]");
ensure_equals("LLStringUtil::format: Assorted Test2 result count", 9, subcount);
+
+ // Test on nested brackets
+ 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][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
std::string srcs8 = "foo[DELETE]bar?";