[test-map] Add test for reset

I expect this to leak now, since we don't destruct items.
This commit is contained in:
Behdad Esfahbod 2022-11-17 15:51:39 -07:00
parent e93c01c3ae
commit 4caad5720c
1 changed files with 6 additions and 0 deletions

View File

@ -266,6 +266,12 @@ main (int argc, char **argv)
assert (m3.has (3)); 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; return 0;
} }