17 #include "gtest/gtest.h" 23 constexpr
size_t kInlined = 4;
24 constexpr
size_t kSmallSize = kInlined / 2;
25 constexpr
size_t kLargeSize = kInlined * 2;
30 template <
typename Allocator = std::allocator<Thrower>>
33 TEST(InlinedVector, DefaultConstructor) {
34 testing::TestThrowingCtor<InlVec<>>();
36 testing::TestThrowingCtor<InlVec<ThrowerAlloc>>();
39 TEST(InlinedVector, AllocConstructor) {
40 auto alloc = std::allocator<Thrower>();
41 testing::TestThrowingCtor<InlVec<>>(
alloc);
43 auto throw_alloc = ThrowerAlloc();
44 testing::TestThrowingCtor<InlVec<ThrowerAlloc>>(throw_alloc);
47 TEST(InlinedVector, Clear) {
48 auto small_vec = InlVec<>(kSmallSize);
51 auto large_vec = InlVec<>(kLargeSize);
testing::AssertionResult TestNothrowOp(const Operation &operation)
TEST(Symbolize, Unimplemented)
std::allocator< int > alloc