2 * Copyright (c) 1998-2006, Index Data.
3 * See the file LICENSE for details.
5 * $Id: tstquery.cpp,v 1.3 2006-07-07 12:57:15 adam Exp $
9 #include <yazpp/z-query.h>
11 using namespace yazpp_1;
13 void tst1(const char *query_str_in, const char *query_expected)
23 char query_str_out[100];
24 q2.print(query_str_out, sizeof(query_str_out)-1);
26 if (strcmp(query_str_out, query_expected))
28 fprintf(stderr, "tstquery: query mismatch out=%s expected=%s\n",
29 query_str_out, query_expected);
34 int main(int argc, char **argv)
37 tst1("x", "RPN @attrset Bib-1 x");
38 tst1("@and a b", "RPN @attrset Bib-1 @and a b");
44 * indent-tabs-mode: nil
46 * vim: shiftwidth=4 tabstop=8 expandtab