X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Ftstodr.c;h=ead978d5e62fcb1b70b45c0fd6f31365925cbc67;hb=6aa60532542a01bfe78be0c91cbf57ce7cf851ce;hp=4d681a10e310bb0f255d8c8fdbb3968f0419a7f9;hpb=ec1f815d5348cd21e393f76bc212c910c34bbc45;p=yaz-moved-to-github.git diff --git a/odr/tstodr.c b/odr/tstodr.c index 4d681a1..ead978d 100644 --- a/odr/tstodr.c +++ b/odr/tstodr.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: tstodr.c,v 1.3 2003-05-20 19:55:30 adam Exp $ + * $Id: tstodr.c,v 1.5 2003-05-26 13:47:23 adam Exp $ * */ #include @@ -68,16 +68,38 @@ void tst_MySequence2(ODR encode, ODR decode) exit(9); if (odr_geterror(encode) != OREQUIRED) exit(10); - if (strcmp(odr_getaddinfo(encode), "first")) + if (strcmp(odr_getelement(encode), "first")) exit(11); odr_reset(encode); if (odr_geterror(encode) != ONONE) exit(12); - if (strcmp(odr_getaddinfo(encode), "")) + if (strcmp(odr_getelement(encode), "")) exit(13); } +void tst_MySequence3(ODR encode, ODR decode) +{ + char buf[40]; + int i; + Yc_MySequence *t; + + srand(123); + for (i = 0; i<1000; i++) + { + int j; + for (j = 0; j