2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstwrbuf.c,v 1.5 2006-01-29 21:59:13 adam Exp $
11 #include <yaz/wrbuf.h>
14 static void tstwrbuf(void)
17 WRBUF wr = wrbuf_alloc();
27 for (step = 1; step < 65; step++)
33 for (j = 1; j<step; j++)
43 YAZ_CHECK(len == step * (step-1) / 2);
45 for (j = 1; j<step; j++)
48 YAZ_CHECK(cp[k] == i+1);
56 int main (int argc, char **argv)
58 YAZ_CHECK_INIT(argc, argv);
66 * indent-tabs-mode: nil
68 * vim: shiftwidth=4 tabstop=8 expandtab