X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftsticonv.c;h=a011c372f21cb2247110fe62fbd9f04e6e7b3487;hb=785a4eb49c2023ac55d8eac471cefcddf6d19e80;hp=a3fbda1eefe70f93b4f973937e6d0c6781fb16d3;hpb=273ad9b2ed17eaf4daa43e321ad4b96be2b92518;p=yaz-moved-to-github.git diff --git a/test/tsticonv.c b/test/tsticonv.c index a3fbda1..a011c37 100644 --- a/test/tsticonv.c +++ b/test/tsticonv.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tsticonv.c,v 1.6 2005-02-01 21:07:19 adam Exp $ + * $Id: tsticonv.c,v 1.8 2005-02-02 23:27:05 adam Exp $ */ #if HAVE_CONFIG_H @@ -136,7 +136,8 @@ static void tst_marc8_to_ucs4b() }, { "\x61\xC2", /* a, phonorecord mark */ 8, "\x00\x00\x00\x61" "\x00\x00\x21\x17" - }, { + }, + { /* bug #258 */ "el" "\xe8" "am\xe8" "an", /* elaman where a is a" */ 32, "\x00\x00\x00" "e" @@ -147,7 +148,12 @@ static void tst_marc8_to_ucs4b() "\x00\x00\x00" "a" "\x00\x00\x03\x08" "\x00\x00\x00" "n" - }, { + }, + { /* bug #260 */ + "\xe5\xe8\x41", + 12, "\x00\x00\x00\x41" "\x00\x00\x03\x04" "\x00\x00\x03\x08" + }, + { 0, 0, 0 } }; @@ -160,7 +166,7 @@ static void tst_marc8_to_ucs4b() printf ("tsticonv 20 yaz_iconv_open failed\n"); exit(20); } - for (i = 6; ar[i].len; i++) + for (i = 0; ar[i].len; i++) { size_t r; size_t expect_len = ar[i].len;