[test] Extend hb_set test for issue 579 (currently failing)

This commit is contained in:
Jonathan Kew 2017-10-26 12:55:36 +01:00 committed by Behdad Esfahbod
parent 3d6f7df42a
commit 7339926525
1 changed files with 18 additions and 0 deletions

View File

@ -188,6 +188,24 @@ test_set_algebra (void)
g_assert (hb_set_has (o, 888));
g_assert (hb_set_has (o, 889));
hb_set_clear (s);
test_empty (s);
hb_set_add_range (s, 886, 895);
hb_set_add (s, 1014);
hb_set_add (s, 1017);
hb_set_add (s, 1024);
hb_set_add (s, 1113);
hb_set_add (s, 1121);
g_assert_cmpint (hb_set_get_population (s), ==, 15);
hb_set_clear (o);
test_empty (o);
hb_set_add (o, 889);
g_assert_cmpint (hb_set_get_population (o), ==, 1);
hb_set_intersect (o, s);
g_assert_cmpint (hb_set_get_population (o), ==, 1);
g_assert (hb_set_has (o, 889));
hb_set_destroy (s);
hb_set_destroy (o);
}