From 8ce397e8c0a83e49e390de9deb73d588e4931ecf Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Tue, 29 Oct 2024 21:02:25 -0500 Subject: Reworking of Result. --- test/test_vector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_vector.cpp') diff --git a/test/test_vector.cpp b/test/test_vector.cpp index b4fd83c..cadeaa6 100644 --- a/test/test_vector.cpp +++ b/test/test_vector.cpp @@ -98,7 +98,8 @@ TEST(VectorTest, NonTrivialVector) ASSERT_GE(nonTrivialVector.capacity(), 11); ASSERT_EQ(counter, 11); auto capacity = nonTrivialVector.capacity(); - ASSERT_EQ(nonTrivialVector.reserve(SIZE_MAX / sizeof(NonTrivial)), FudStatus::AllocFailure); + constexpr auto FAIL_RESERVE_SIZE = 0x10000000000 / sizeof(NonTrivial); + ASSERT_EQ(nonTrivialVector.reserve(FAIL_RESERVE_SIZE), FudStatus::AllocFailure); ASSERT_EQ(nonTrivialVector.capacity(), capacity); { -- cgit v1.2.3