From 1c612a85415ed3b0aec4907817f5ed7211dd1c3c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 18 Nov 2022 18:18:42 -0700 Subject: [PATCH] [test-set] Test sinking range --- src/test-set.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test-set.cc b/src/test-set.cc index 6678eab35..e760c98f8 100644 --- a/src/test-set.cc +++ b/src/test-set.cc @@ -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 {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. */