Commit ce378af2 authored by Moritz Lipp's avatar Moritz Lipp

Fix annotation icon name test cases

parent 8ed1a4bb
......@@ -111,7 +111,8 @@ START_TEST(test_annotation_file_get_icon_name) {
/* valid arguments */
fail_unless(zathura_annotation_file_get_icon_name(annotation, &icon_name)
== ZATHURA_ERROR_OK);
fail_unless(icon_name == NULL);
fail_unless(icon_name != NULL);
fail_unless(strcmp(icon_name, "PushPin") == 0);
fail_unless(zathura_annotation_file_set_icon_name(annotation, "test")
== ZATHURA_ERROR_OK);
fail_unless(zathura_annotation_file_get_icon_name(annotation, &icon_name)
......
......@@ -99,7 +99,8 @@ START_TEST(test_annotation_sound_get_icon_name) {
/* valid arguments */
fail_unless(zathura_annotation_sound_get_icon_name(annotation, &icon_name)
== ZATHURA_ERROR_OK);
fail_unless(icon_name == NULL);
fail_unless(icon_name != NULL);
fail_unless(strcmp(icon_name, "Speaker") == 0);
fail_unless(zathura_annotation_sound_set_icon_name(annotation, "test")
== ZATHURA_ERROR_OK);
fail_unless(zathura_annotation_sound_get_icon_name(annotation, &icon_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment