[hb-set] Additional testcase for hb-set-intersect.

This commit is contained in:
Jonathan Kew 2018-06-11 18:09:35 -07:00 committed by Behdad Esfahbod
parent 82484b05ca
commit a95cde15af
1 changed files with 6 additions and 0 deletions

View File

@ -254,6 +254,12 @@ test_set_algebra (void)
g_assert_cmpint (hb_set_get_population (o), ==, 1);
g_assert (hb_set_has (o, 889));
hb_set_add (o, 511);
g_assert_cmpint (hb_set_get_population (o), ==, 2);
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);
}