1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2011 Index Data
3 * See the file LICENSE for details.
12 #include <yaz/wrbuf.h>
15 static void tstwrbuf(void)
31 for (step = 1; step < 65; step++)
37 for (j = 1; j<step; j++)
47 YAZ_CHECK(len == step * (step-1) / 2);
49 for (j = 1; j<step; j++)
52 YAZ_CHECK(cp[k] == i+1);
60 int main (int argc, char **argv)
62 YAZ_CHECK_INIT(argc, argv);
70 * c-file-style: "Stroustrup"
71 * indent-tabs-mode: nil
73 * vim: shiftwidth=4 tabstop=8 expandtab