[test-map] Add test for reset
I expect this to leak now, since we don't destruct items.
This commit is contained in:
parent
e93c01c3ae
commit
4caad5720c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue