1 /* This file is part of the yazpp toolkit.
2 * Copyright (C) 1998-2009 Index Data and Mike Taylor
3 * See the file LICENSE for details.
7 #include <yazpp/z-query.h>
9 using namespace yazpp_1;
11 void tst1(const char *query_str_in, const char *query_expected)
21 char query_str_out[100];
22 q2.print(query_str_out, sizeof(query_str_out)-1);
24 if (strcmp(query_str_out, query_expected))
26 fprintf(stderr, "tstquery: query mismatch out=%s expected=%s\n",
27 query_str_out, query_expected);
32 int main(int argc, char **argv)
35 tst1("x", "RPN @attrset Bib-1 x");
36 tst1("@and a b", "RPN @attrset Bib-1 @and a b");
42 * indent-tabs-mode: nil
44 * vim: shiftwidth=4 tabstop=8 expandtab