X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_record_conv.c;h=cc7b06b4102a0537dc23c7eb905f65bc7c80a3da;hp=dff7f688f75e11255ae20bf1e48e799601dfab77;hb=185071b355f704ffe9072b3221eedbda78558dda;hpb=3107ce3a34993d2f784387f227a50343fff83bbc diff --git a/test/test_record_conv.c b/test/test_record_conv.c index dff7f68..cc7b06b 100644 --- a/test/test_record_conv.c +++ b/test/test_record_conv.c @@ -1,17 +1,17 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif + #include #include #include #include #include -#if HAVE_CONFIG_H -#include -#endif - #if YAZ_HAVE_XML2 #include @@ -225,6 +225,14 @@ static void tst_convert1(void) " 11224466 \n" " \n" "\n"; + const char *tmarcxml_rec = + "\n" + " 00080nam a22000498a 4500\n" + " 11224466 \n" + " \n" + " 11224466 \n" + " \n" + "\n"; const char *iso2709_rec = "\x30\x30\x30\x38\x30\x6E\x61\x6D\x20\x61\x32\x32\x30\x30\x30\x34" "\x39\x38\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" @@ -242,6 +250,7 @@ static void tst_convert1(void) "", 0, &p)); YAZ_CHECK(conv_convert_test(p, marcxml_rec, iso2709_rec)); + YAZ_CHECK(conv_convert_test(p, tmarcxml_rec, iso2709_rec)); yaz_record_conv_destroy(p); YAZ_CHECK(conv_configure_test(""