From a95cde15af4aa34e76c4394dfdf17e7d25164d5b Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Mon, 11 Jun 2018 18:09:35 -0700 Subject: [PATCH] [hb-set] Additional testcase for hb-set-intersect. --- test/api/test-set.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/api/test-set.c b/test/api/test-set.c index e6590f45a..338a610c9 100644 --- a/test/api/test-set.c +++ b/test/api/test-set.c @@ -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); }