From 46ef949fc6e8c975ebb5bd6ed1a4f745b2d24aae Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 21 Jun 2012 14:35:54 +0200 Subject: [PATCH] Add test case for rendering of UTF-8 MARC record --- test/test_embed_record.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/test/test_embed_record.c b/test/test_embed_record.c index 5472c73..ebb8a6a 100644 --- a/test/test_embed_record.c +++ b/test/test_embed_record.c @@ -245,6 +245,54 @@ int main(int argc, char **argv) " How to program a computer\n" " \n" "\n")); + + YAZ_CHECK(test_render( + "xml; charset=utf-8; base64=/my/text()", 0, + "" +"MDA0OTJuYW0gYTIyMDAxNDU1YSA0NTAwMDAxMDAxMDAwMDAwMDA1MDAxNzAwMDEwMDA4MDA0MTAw" +"MDI3MTAwMDA1MjAwMDY4MjQ1MDEwNDAwMTIwMjUwMDAxNDAwMjI0MjYwMDAyMzAwMjM4MzAwMDAx" +"NjAwMjYxNjUwMDA1MTAwMjc3NjUwMDAxODAwMzI4HjAwMDI3NzQ4NR4yMDA1MTAyNjExMTQzNi4w" +"HjA1MDQxM3MxODk0ICAgIGdyICAgICAgICAgICAgMDAwIDAgZ3JlIGQeMSAfYc6czrHPgc6/z43O" +"tM63z4IsIM6az4nOvc+Dz4TOsc69z4TOr869zr/PgiDOmc+JHjEwH2HOlc67zrvOt869zrnOus+M" +"zr0gzrrPgc+Fz4DPhM6/zrPPgc6xz4bOuc66z4zOvSDOu861zr7Ouc66z4zOvSAvH2POms+Jzr3P" +"g8+ELiDOmS4gzpzOsc+Bzr/Pjc60zrfPgi4eICAyzrcgzrXOus60Lh4gIB9hzpHOuM6uzr3OsSwf" +"YzE4OTQuHiAgH2EyNDggz4POtc67Lh4gMB9hR3JlZWsgbGFuZ3VhZ2UsIE1vZGVybh94RGlhbGVj" +"dHMfdkRpY3Rpb25hcmllcx4gMB9hQ3J5cHRvZ3JhcGh5Lh4d" + "", +"\n" +"\n" +" 00492nam a22001455a 4500\n" +" 000277485\n" +" 20051026111436.0\n" +" 050413s1894 gr 000 0 gre d\n" +" \n" +" Μαρούδης, Κωνσταντίνος Ιω\n" +" \n" +" \n" +" Ελληνικόν κρυπτογραφικόν λεξικόν /\n" +" Κωνστ. Ι. Μαρούδης.\n" +" \n" +" \n" +" εκδ.\n" +" \n" +" \n" +" Αθήνα,\n" +" 1894.\n" +" \n" +" \n" +" 248 σελ.\n" +" \n" +" \n" +" Greek language, Modern\n" +" Dialects\n" +" Dictionaries\n" +" \n" +" \n" +" Cryptography.\n" +" \n" +"\n")); + + #endif YAZ_CHECK_TERM; } -- 1.7.10.4