diff options
Diffstat (limited to 'server/src/queryhandlerpentominos.cc')
-rw-r--r-- | server/src/queryhandlerpentominos.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/src/queryhandlerpentominos.cc b/server/src/queryhandlerpentominos.cc index acca840..f70033d 100644 --- a/server/src/queryhandlerpentominos.cc +++ b/server/src/queryhandlerpentominos.cc @@ -228,7 +228,7 @@ QueryResult QueryHandlerPentominos::exec(Query &query) return result; } -#ifdef TEST_QUERYHANDLER +#ifdef TEST_QUERYHANDLERPENTOMINOS int main() { @@ -240,11 +240,10 @@ int main() Query q1; q1.attributes["device_id"] = "lensmeter"; q1.attributes["device_type"] = "lensmeter"; - qh.addQuery(q1); + QueryResult res = qh.exec(q1); + res.print(); - std::string res = qh.exec(); - return 0; } -#endif/*TEST_QUERYHANDLER*/ +#endif/*TEST_QUERYHANDLERPENTOMINOS*/ |