diff options
Diffstat (limited to 'test/test_vector.cpp')
-rw-r--r-- | test/test_vector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); { |