test: added QueryTree tests checking correct query syntax

This commit is contained in:
Eberhard Graether
2014-08-31 11:36:08 +02:00
parent c84972b96e
commit aee0b7c337
8 changed files with 392 additions and 14 deletions
+5 -2
View File
@@ -100,8 +100,11 @@ ContainerType utility::tokenize(const ContainerType& list, const std::string& de
for (std::string str : list)
{
ContainerType c2 = tokenize<ContainerType>(str, delimiter);
c.insert(c.end(), c2.begin(), c2.end());
if (str.size())
{
ContainerType c2 = tokenize<ContainerType>(str, delimiter);
c.insert(c.end(), c2.begin(), c2.end());
}
}
return c;