+ { /* LATIN CAPITAL LETTER A WITH DIAERESIS */
+ static const uint32_t input1[] = { 0x00C4 };
+ static const uint32_t input2[] = { 0x0041, 0x0308 };
+ int cmp;
+
+ ASSERT (my_normcmp (input1, SIZEOF (input1), input2, SIZEOF (input2), UNINORM_NFD, &cmp) == 0);
+ ASSERT (cmp == 0);
+ }
+ { /* LATIN CAPITAL LETTER A WITH DIAERESIS AND MACRON */
+ static const uint32_t input1[] = { 0x01DE };
+ static const uint32_t input2[] = { 0x0041, 0x0308, 0x0304 };
+ int cmp;
+
+ ASSERT (my_normcmp (input1, SIZEOF (input1), input2, SIZEOF (input2), UNINORM_NFD, &cmp) == 0);
+ ASSERT (cmp == 0);
+ }
+ { /* GREEK DIALYTIKA AND PERISPOMENI */
+ static const uint32_t input1[] = { 0x1FC1 };
+ static const uint32_t input2[] = { 0x00A8, 0x0342 };
+ int cmp;
+
+ ASSERT (my_normcmp (input1, SIZEOF (input1), input2, SIZEOF (input2), UNINORM_NFD, &cmp) == 0);
+ ASSERT (cmp == 0);
+ }
+ { /* HANGUL SYLLABLE GEUL */
+ static const uint32_t input1[] = { 0xAE00 };
+ static const uint32_t input2[] = { 0xADF8, 0x11AF };
+ static const uint32_t input3[] = { 0x1100, 0x1173, 0x11AF };
+ int cmp;
+
+ ASSERT (my_normcmp (input1, SIZEOF (input1), input2, SIZEOF (input2), UNINORM_NFD, &cmp) == 0);
+ ASSERT (cmp == 0);
+
+ ASSERT (my_normcmp (input1, SIZEOF (input1), input3, SIZEOF (input3), UNINORM_NFD, &cmp) == 0);
+ ASSERT (cmp == 0);
+ }
+ { /* HANGUL SYLLABLE GEU */
+ static const uint32_t input1[] = { 0xADF8 };
+ static const uint32_t input2[] = { 0x1100, 0x1173 };
+ int cmp;
+
+ ASSERT (my_normcmp (input1, SIZEOF (input1), input2, SIZEOF (input2), UNINORM_NFD, &cmp) == 0);
+ ASSERT (cmp == 0);
+ }
+}
+
+int
+main ()
+{
+ test_ascii (u32_normcmp, UNINORM_NFD);
+ test_nonascii (u32_normcmp);