Skip to content

Commit 09b6916

Browse files
MaliaLaborkammce
andauthored
Specify exception
Co-authored-by: Khalil Estell <kammcecorp@gmail.com>
1 parent cf338d4 commit 09b6916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/strong_ptr.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ boost::ut::suite<"monotonic_allocator_test"> monotonic_allocator_test = []() {
470470
expect(that % 1 == *int_ptr1) << "Int assignment failed.\n";
471471
expect(that % 2 == *int_ptr2) << "Int assignment failed.\n";
472472

473-
expect(throws([&] {
473+
expect(throws<std::bad_alloc>([&] {
474474
[[maybe_unused]] auto ptr3 =
475475
allocator.allocate(sizeof(std::uint32_t), alignof(std::uint32_t));
476476
}))

0 commit comments

Comments
 (0)