mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-18 14:48:53 +02:00
Bug 648271 - Add g_unicode_script_to_iso15924()
Add g_unicode_script_to_iso15924() and tests.
This commit is contained in:
@@ -602,6 +602,13 @@ test_fully_decompose_len (void)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
test_script_to_iso15924 (void)
|
||||
{
|
||||
g_assert_cmphex (0, ==, g_unicode_script_to_iso15924 (G_UNICODE_SCRIPT_INVALID_CODE));
|
||||
g_assert_cmphex (0x41726162, ==, g_unicode_script_to_iso15924 (G_UNICODE_SCRIPT_ARABIC));
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc,
|
||||
char *argv[])
|
||||
@@ -623,6 +630,7 @@ main (int argc,
|
||||
g_test_add_func ("/unicode/canonical-decomposition", test_canonical_decomposition);
|
||||
g_test_add_func ("/unicode/decompose-tail", test_decompose_tail);
|
||||
g_test_add_func ("/unicode/fully-decompose-len", test_fully_decompose_len);
|
||||
g_test_add_func ("/unicode/script-to-iso15924", test_script_to_iso15924);
|
||||
|
||||
return g_test_run();
|
||||
}
|
||||
|
Reference in New Issue
Block a user