diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-02-26 07:17:08 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-02-26 07:17:08 -0500 |
commit | bf7c215692435ceb85d8991a9337933688dc0cf0 (patch) | |
tree | 6e436cc7f91ecb148940cd5c7364e6aec83da995 | |
parent | d2faf5d25a0f6cc3ccaaf450fe6d3585fef058b7 (diff) |
Add LLStringUtil::getTokens() test for quoted empty string.
This is an important differentiator between getTokens() and the present
LLCommandLineParser::parseCommandLineString() logic: you cannot currently
--set SomeVar to an empty string value because parseCommandLineString()
discards empty strings.
-rw-r--r-- | indra/llcommon/tests/llstring_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llcommon/tests/llstring_test.cpp b/indra/llcommon/tests/llstring_test.cpp index 821deeac21..93d3968dbf 100644 --- a/indra/llcommon/tests/llstring_test.cpp +++ b/indra/llcommon/tests/llstring_test.cpp @@ -847,6 +847,9 @@ namespace tut ensure_getTokens("adjacent quoted", "abc'def \"ghi'\"jkl' mno\"pqr", " ", "", "\"'", list_of("abcdef \"ghijkl' mnopqr")); + ensure_getTokens("quoted empty string", + "--set SomeVar ''", " ", "", "'", + list_of("--set")("SomeVar")("")); // escapes // Don't use backslash as an escape for these tests -- you'll go nuts |