提交 73399265 编写于 作者: J Jonathan Kew 提交者: Behdad Esfahbod

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

上级 3d6f7df4
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册