projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d31135
)
Add test case for iconv
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 7 Feb 2013 14:35:47 +0000
(15:35 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 7 Feb 2013 14:35:47 +0000
(15:35 +0100)
Test conversion of Aring to marc-8 in both NFC and NFD forms.
test/test_iconv.c
patch
|
blob
|
history
diff --git
a/test/test_iconv.c
b/test/test_iconv.c
index
ffec4f4
..
27596b2
100644
(file)
--- 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"));