mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
Add some more keysyms tests
Spot-check a few keypad symbols.
This commit is contained in:
parent
31ebe42d2e
commit
dbefc330bd
@ -113,6 +113,10 @@ test_key_unicode (void)
|
||||
{ GDK_KEY_A, 'A' },
|
||||
{ GDK_KEY_EuroSign, 0x20ac },
|
||||
{ UNICODE_KEYVAL (0x1f60b), 0x1f60b },
|
||||
},
|
||||
oneway_tests[] = {
|
||||
{ GDK_KEY_KP_0, '0' },
|
||||
{ GDK_KEY_KP_Divide, '/' },
|
||||
};
|
||||
guint i;
|
||||
|
||||
@ -121,6 +125,11 @@ test_key_unicode (void)
|
||||
g_assert_cmpuint (gdk_keyval_to_unicode (tests[i].key), ==, tests[i].ch);
|
||||
g_assert_cmpuint (gdk_unicode_to_keyval (tests[i].ch), ==, tests[i].key);
|
||||
}
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (oneway_tests); i++)
|
||||
{
|
||||
g_assert_cmpuint (gdk_keyval_to_unicode (tests[i].key), ==, tests[i].ch);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user