[test-set] Test sinking range

This commit is contained in:
Behdad Esfahbod 2022-11-18 18:18:42 -07:00
parent 356708e34a
commit 1c612a8541
1 changed files with 5 additions and 2 deletions

View File

@ -88,11 +88,14 @@ main (int argc, char **argv)
hb_set_t s;
s.add (18);
s.add (12);
s << 12;
/* Sink a range. */
s << hb_pair_t<hb_codepoint_t, hb_codepoint_t> {1, 3};
hb_set_t v (hb_iter (s));
assert (v.get_population () == 2);
assert (v.get_population () == 5);
}
/* Test initializing from initializer list and swapping. */