From f734c26c5c78f56e2d1875f5ce262b6a06093d70 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 15 Nov 2022 16:27:56 -0700 Subject: [PATCH] [test-vector] Test inserting set and map --- src/test-vector.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test-vector.cc b/src/test-vector.cc index 0a0ce40a2..d179a64d2 100644 --- a/src/test-vector.cc +++ b/src/test-vector.cc @@ -26,6 +26,7 @@ #include "hb.hh" #include "hb-vector.hh" #include "hb-set.hh" +#include "hb-map.hh" #include @@ -164,5 +165,17 @@ main (int argc, char **argv) v2.remove (50); } + { + hb_vector_t v; + hb_set_t s {1, 5, 7}; + v.push (s); + } + + { + hb_vector_t v; + hb_map_t m; + v.push (m); + } + return 0; }