mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-17 01:15:59 +01:00
fixed GH #1141: Poco::StringTokenizer::TOK_TRIM changes behavior between 1.4 and 1.6
This commit is contained in:
@@ -326,6 +326,13 @@ void StringTokenizerTest::testStringTokenizer()
|
||||
assert (st.find("2") == 1);
|
||||
assert (st.find("3") == 2);
|
||||
}
|
||||
|
||||
{
|
||||
Poco::StringTokenizer st(" 2- ","-", Poco::StringTokenizer::TOK_TRIM);
|
||||
assert (st.count() == 2);
|
||||
assert (st[0] == "2");
|
||||
assert (st[1] == "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user