9 if (g_unichar_type ('A') != G_UNICODE_UPPERCASE_LETTER
)
11 if (g_unichar_type ('a') != G_UNICODE_LOWERCASE_LETTER
)
13 if (g_unichar_type ('1') != G_UNICODE_DECIMAL_NUMBER
)
15 if (g_unichar_type (0xA3) != G_UNICODE_CURRENCY_SYMBOL
)
24 test_g_unichar_toupper ()
26 if (g_unichar_toupper (0) != 0)
28 if (g_unichar_toupper ('a') != 'A')
30 if (g_unichar_toupper ('1') != '1')
32 if (g_unichar_toupper (0x1C4) != 0x1C4)
34 if (g_unichar_toupper (0x1F2) != 0x1F1)
36 if (g_unichar_toupper (0x1F3) != 0x1F1)
38 if (g_unichar_toupper (0xFFFF) != 0xFFFF)
40 if (g_unichar_toupper (0x10428) != 0x10400)
49 test_g_unichar_tolower ()
51 if (g_unichar_tolower (0) != 0)
53 if (g_unichar_tolower ('A') != 'a')
55 if (g_unichar_tolower ('1') != '1')
57 if (g_unichar_tolower (0x1C5) != 0x1C6)
59 if (g_unichar_tolower (0x1F1) != 0x1F3)
61 if (g_unichar_tolower (0x1F2) != 0x1F3)
63 if (g_unichar_tolower (0xFFFF) != 0xFFFF)
72 test_g_unichar_totitle ()
74 if (g_unichar_toupper (0) != 0)
76 if (g_unichar_totitle ('a') != 'A')
78 if (g_unichar_totitle ('1') != '1')
80 if (g_unichar_totitle (0x1C4) != 0x1C5)
82 if (g_unichar_totitle (0x1F2) != 0x1F2)
84 if (g_unichar_totitle (0x1F3) != 0x1F2)
86 if (g_unichar_toupper (0xFFFF) != 0xFFFF)
91 static Test unicode_tests
[] = {
92 {"g_unichar_type", test_g_unichar_type
},
93 {"g_unichar_toupper", test_g_unichar_toupper
},
94 {"g_unichar_tolower", test_g_unichar_tolower
},
95 {"g_unichar_totitle", test_g_unichar_totitle
},
99 DEFINE_TEST_GROUP_INIT(unicode_tests_init
, unicode_tests
)