1 /* This file is part of the yazpp toolkit.
2 * Copyright (C) 1998-2012 Index Data and Mike Taylor
3 * See the file LICENSE for details.
10 #include <yazpp/z-query.h>
12 using namespace yazpp_1;
14 void tst1(const char *query_str_in, const char *query_expected)
24 char query_str_out[100];
25 q2.print(query_str_out, sizeof(query_str_out)-1);
27 if (strcmp(query_str_out, query_expected))
29 fprintf(stderr, "tstquery: query mismatch out=%s expected=%s\n",
30 query_str_out, query_expected);
35 int main(int argc, char **argv)
38 tst1("x", "RPN @attrset Bib-1 x");
39 tst1("@and a b", "RPN @attrset Bib-1 @and a b");
45 * c-file-style: "Stroustrup"
46 * indent-tabs-mode: nil
48 * vim: shiftwidth=4 tabstop=8 expandtab