Update tests to account for a default-constructed container having no buckets

This commit is contained in:
Christian Mazakas
2022-08-30 15:20:31 -07:00
parent f141cd1dea
commit 48765e82e0
6 changed files with 257 additions and 8 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ void insert_rehash_exception_test(
T*, Inserter insert, test::random_generator gen)
{
for (int i = 0; i < 5; ++i) {
T x;
T x(1);
rehash_prep(x);
test::random_values<T> v2(5, gen);
@@ -393,7 +393,7 @@ template <typename T>
void insert_range_rehash_exception_test(T*, test::random_generator gen)
{
for (int i = 0; i < 5; ++i) {
T x;
T x(1);
rehash_prep(x);
test::random_values<T> v2(5, gen);