[test-map] Add test for reset

I expect this to leak now, since we don't destruct items.
pull/3885/head
Behdad Esfahbod 2 years ago
parent e93c01c3ae
commit 4caad5720c
  1. 6
      src/test-map.cc

@ -266,6 +266,12 @@ main (int argc, char **argv)
assert (m3.has (3));
}
/* Test reset. */
{
hb_hashmap_t<int, hb_set_t> m;
m.set (1, hb_set_t {1, 2, 3});
m.reset ();
}
return 0;
}

Loading…
Cancel
Save