From: Adam Dickmeiss Date: Thu, 7 Feb 2013 14:35:47 +0000 (+0100) Subject: Add test case for iconv X-Git-Tag: v4.2.51~9 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=fd0e844569539b1c365114ff1b82209832f14bf7;p=yaz-moved-to-github.git Add test case for iconv Test conversion of Aring to marc-8 in both NFC and NFD forms. --- diff --git a/test/test_iconv.c b/test/test_iconv.c index ffec4f4..27596b2 100644 --- a/test/test_iconv.c +++ b/test/test_iconv.c @@ -507,9 +507,12 @@ static void tst_utf8_to_marc8(const char *marc8_type) /** UPPERCASE SCANDINAVIAN O */ YAZ_CHECK(tst_convert(cd, "S\xc3\x98", "S\xa2")); - /** ARING */ + /** ARING (NFD) */ YAZ_CHECK(tst_convert(cd, "A" "\xCC\x8A", "\xEA" "A")); + /** ARING (NFC) */ + YAZ_CHECK(tst_convert(cd, "\xC3\x85", "\xEA" "A")); + /** A MACRON + UMLAUT, DIAERESIS */ YAZ_CHECK(tst_convert(cd, "A" "\xCC\x84" "\xCC\x88", "\xE5\xE8\x41"));