test: added QueryTree tests checking correct query syntax
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
QueryNode::QueryNode()
|
||||
: m_isGroup(false)
|
||||
, m_isComplete(true)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -28,6 +29,11 @@ void QueryNode::print(std::ostream& ostream, int n) const
|
||||
ostream << ')';
|
||||
}
|
||||
|
||||
if (!m_isComplete || !isComplete())
|
||||
{
|
||||
ostream << " INVALID";
|
||||
}
|
||||
|
||||
ostream << '\n';
|
||||
}
|
||||
|
||||
@@ -40,3 +46,8 @@ void QueryNode::setIsGroup(bool isGroup)
|
||||
{
|
||||
m_isGroup = isGroup;
|
||||
}
|
||||
|
||||
void QueryNode::setIsComplete(bool isComplete)
|
||||
{
|
||||
m_isComplete = isComplete;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user