Add test for bug in ICU decompose

As reported by Kenichi Ishibashi on 2011-10-28.
This commit is contained in:
Behdad Esfahbod 2012-01-18 21:58:34 -05:00
parent c521e793bd
commit 055fb24d03
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,6 @@ test_unicode_script_roundtrip (gconstpointer user_data)
}
/* TODO test compose() and decompose() */
static void
test_unicode_normalization (gconstpointer user_data)
{
@ -826,6 +825,7 @@ test_unicode_normalization (gconstpointer user_data)
/* Not decomposable */
g_assert (!hb_unicode_decompose (uf, 0x0041, &a, &b) && a == 0x0041 && b == 0);
g_assert (!hb_unicode_decompose (uf, 0xFB01, &a, &b) && a == 0xFB01 && b == 0);
g_assert (!hb_unicode_decompose (uf, 0x1F1EF, &a, &b) && a == 0x1F1EF && b == 0);
/* Singletons */
g_assert (hb_unicode_decompose (uf, 0x212B, &a, &b) && a == 0x00C5 && b == 0);