Skip to content

Commit

Permalink
minor addition for resize test
Browse files Browse the repository at this point in the history
  • Loading branch information
wusatosi committed Jan 17, 2025
1 parent 2bec84a commit f7a3b74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/beman/inplace_vector/spec.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,10 @@ TYPED_TEST(SizeNCapacity, ResizeUp) {
expected[0] = front;
EXPECT_EQ(device, expected);
}

IV before_resize(device);
EXPECT_THROW(device.resize(device.capacity() + 1), bemman::bad_alloc);
EXPECT_EQ(device, before_resize);
}

// 23.3.14.4 Data [inplace.vector.data]
Expand Down

0 comments on commit f7a3b74

Please sign in to comment.