[test] cosmetic, use g_assert_cmpint

This commit is contained in:
Ebrahim Byagowi 2018-10-19 10:20:16 +03:30
parent c6eb5e852c
commit 8a5eba7110
1 changed files with 9 additions and 9 deletions

View File

@ -53,11 +53,11 @@ test_ot_layout_feature_get_name_ids_and_characters ()
&num_named_parameters, &first_param_id)) &num_named_parameters, &first_param_id))
g_error ("Failed to get name ids"); g_error ("Failed to get name ids");
g_assert (label_id == 256); g_assert_cmpint (label_id, ==, 256);
g_assert (tooltip_id == 257); g_assert_cmpint (tooltip_id, ==, 257);
g_assert (sample_id == 258); g_assert_cmpint (sample_id, ==, 258);
g_assert (num_named_parameters == 2); g_assert_cmpint (num_named_parameters, ==, 2);
g_assert (first_param_id == 259); g_assert_cmpint (first_param_id, ==, 259);
hb_codepoint_t characters[100]; hb_codepoint_t characters[100];
unsigned int char_count = 100; unsigned int char_count = 100;
@ -66,10 +66,10 @@ test_ot_layout_feature_get_name_ids_and_characters ()
all_chars = hb_ot_layout_feature_get_characters (face, HB_OT_TAG_GSUB, feature_index, all_chars = hb_ot_layout_feature_get_characters (face, HB_OT_TAG_GSUB, feature_index,
0, &char_count, characters); 0, &char_count, characters);
g_assert (all_chars == 2); g_assert_cmpint (all_chars, ==, 2);
g_assert (char_count == 2); g_assert_cmpint (char_count, ==, 2);
g_assert (characters[0] == 10); g_assert_cmpint (characters[0], ==, 10);
g_assert (characters[1] == 24030); g_assert_cmpint (characters[1], ==, 24030);
} }
int int