X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_iconv.c;h=4651203273ede9b094e6be30760cb9bada1daf53;hp=27596b207c41f6841b51cb14f21c4ea31abfc2c2;hb=2edad3fa067b30e1a8effde531a5fe75ddd899ce;hpb=03b00294a8f57bfd02c81e7ac4ee2bb280177f98 diff --git a/test/test_iconv.c b/test/test_iconv.c index 27596b2..4651203 100644 --- a/test/test_iconv.c +++ b/test/test_iconv.c @@ -156,16 +156,6 @@ static int tst_convert(yaz_iconv_t cd, const char *buf, const char *cmpbuf) return tst_convert_x(cd, buf, cmpbuf, 0); } -/* some test strings in ISO-8859-1 format */ -static const char *iso_8859_1_a[] = { - "ax" , - "\xd8", - "eneb\346r", - "\xe5" "\xd8", - "\xe5" "\xd8" "b", - "\xe5" "\xe5", - 0 }; - static void tst_marc8_to_ucs4b(void) { yaz_iconv_t cd = yaz_iconv_open("UCS4", "MARC8"); @@ -288,6 +278,15 @@ static void tst_ucs4b_to_utf8(void) static void dconvert(int mandatory, const char *tmpcode) { + /* some test strings in ISO-8859-1 format */ + static const char *iso_8859_1_a[] = { + "ax" , + "\xd8", + "eneb\346r", + "\xe5" "\xd8", + "\xe5" "\xd8" "b", + "\xe5" "\xe5", + 0 }; int i; int ret; yaz_iconv_t cd;