From fd0e844569539b1c365114ff1b82209832f14bf7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 7 Feb 2013 15:35:47 +0100 Subject: [PATCH] Add test case for iconv Test conversion of Aring to marc-8 in both NFC and NFD forms. --- test/test_iconv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")); -- 1.7.10.4