diff options
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c index ed27664..c64fd6e 100644 --- a/test/test.c +++ b/test/test.c @@ -555,6 +555,23 @@ START_TEST(test_hangul_keyboard) fail_unless( (keyboard = hangul_keyboard_new_from_file(TEST_SOURCE_DIR "/recursive.xml")) != NULL ); + + fail_unless( + (id = hangul_keyboard_list_register_keyboard(keyboard)) != NULL + ); + fail_unless( + strcmp(id, "recursive") == 0 + ); + fail_unless( + hangul_keyboard_list_get_count() == n + 1 + ); + fail_unless( + hangul_keyboard_list_get_keyboard(id) == keyboard + ); + fail_unless( + hangul_keyboard_list_unregister_keyboard(id) == keyboard + ); + hangul_keyboard_delete(keyboard); } END_TEST |