mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-23 05:14:57 +00:00
StringTokenizer trailing empty tokens consistency
Modified StringTokenizer to eith include or exclude all empty tokens (including trailing ones based on TOK_IGNORE_EMPTY option.
This commit is contained in:
@@ -133,6 +133,8 @@ void StringTokenizerTest::testStringTokenizer()
|
||||
assert (*it++ == "a");
|
||||
assert (it != st.end());
|
||||
assert (*it++ == "");
|
||||
assert (it != st.end());
|
||||
assert (*it++ == "");
|
||||
assert (it == st.end());
|
||||
}
|
||||
{
|
||||
@@ -144,6 +146,8 @@ void StringTokenizerTest::testStringTokenizer()
|
||||
assert (*it++ == "a");
|
||||
assert (it != st.end());
|
||||
assert (*it++ == "");
|
||||
assert (it != st.end());
|
||||
assert (*it++ == "");
|
||||
assert (it == st.end());
|
||||
}
|
||||
{
|
||||
@@ -306,6 +310,8 @@ void StringTokenizerTest::testStringTokenizer()
|
||||
assert (*it++ == "ab");
|
||||
assert (it != st.end());
|
||||
assert (*it++ == "cd");
|
||||
assert (it != st.end());
|
||||
assert (*it++ == "");
|
||||
assert (it == st.end());
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user