[hb-set] Additional testcase for hb-set-intersect.
This commit is contained in:
parent
82484b05ca
commit
a95cde15af
|
@ -254,6 +254,12 @@ test_set_algebra (void)
|
||||||
g_assert_cmpint (hb_set_get_population (o), ==, 1);
|
g_assert_cmpint (hb_set_get_population (o), ==, 1);
|
||||||
g_assert (hb_set_has (o, 889));
|
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 (s);
|
||||||
hb_set_destroy (o);
|
hb_set_destroy (o);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue