diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-09-13 12:11:11 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-09-13 12:11:11 -0400 |
commit | b2853c1a74ab86b3a06e76986d742323f6d89208 (patch) | |
tree | 7ce9cef683b03fc2989da1f639c9661488892ab7 /indra/llcommon/tests/llstring_test.cpp | |
parent | b56e4cf0e428187c5ed4037b843c05610ed0da2a (diff) | |
parent | 18af6e397ef477287324b510471f640443ce0e33 (diff) |
merge
Diffstat (limited to 'indra/llcommon/tests/llstring_test.cpp')
-rw-r--r-- | indra/llcommon/tests/llstring_test.cpp | 8 |
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?"; |