From 5b45fa0f50810fdbdfd48cc4f53bea0b2051a960 Mon Sep 17 00:00:00 2001 From: Skef Iterum Date: Thu, 5 Feb 2026 22:43:09 -0800 Subject: [PATCH] Validate ligature set contents in SourceSansPro test Instead of just checking that the ligature set is non-empty, now verify it contains the expected component glyphs (1823 and 1829) that form the ligature 1910 (uni03020300). This matches the validation pattern used in the NotoSans-Bold test and provides proper regression testing. --- test/api/test-ot-depend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/test-ot-depend.c b/test/api/test-ot-depend.c index a1f9e10de..4d98f971d 100644 --- a/test/api/test-ot-depend.c +++ b/test/api/test-ot-depend.c @@ -453,12 +453,12 @@ test_depend_gsub_formats (void) &layout_tag, &ligature_set)); g_test_message (" ligature_set = %u", ligature_set); - /* Verify ligature set is valid and contains the other component(s) */ + /* Verify ligature set contains both components (1823, 1829) */ g_assert_cmpuint (HB_CODEPOINT_INVALID, !=, ligature_set); hb_set_t *lig_set_source = hb_set_create (); g_assert_true (hb_depend_get_set_from_index (depend_source, ligature_set, lig_set_source)); - g_assert_cmpuint (0, <, hb_set_get_population (lig_set_source)); /* Non-empty */ - g_test_message (" ligature set contains %u component(s)", hb_set_get_population (lig_set_source)); + g_assert_true (hb_set_has (lig_set_source, 1823)); /* First ligature component */ + g_assert_true (hb_set_has (lig_set_source, 1829)); /* Second ligature component (uni0302) */ hb_set_destroy (lig_set_source); hb_depend_destroy (depend_source);