diff options
author | Mark D. Roth <roth@google.com> | 2018-06-11 11:34:17 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2018-06-11 16:49:13 -0700 |
commit | 5b3824baf20ddd2a0046930a0c8e539eb7b41df6 (patch) | |
tree | 6e7e95bfbdca990de4ad43322dcbdb1ae97352c8 /test | |
parent | 9846826b51ce20c1ecec6084898adbbf033b64c0 (diff) |
Code review changes.
Diffstat (limited to 'test')
-rw-r--r-- | test/core/gprpp/inlined_vector_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/gprpp/inlined_vector_test.cc b/test/core/gprpp/inlined_vector_test.cc index ae34947718..41f4338f8a 100644 --- a/test/core/gprpp/inlined_vector_test.cc +++ b/test/core/gprpp/inlined_vector_test.cc @@ -27,10 +27,12 @@ namespace testing { TEST(InlinedVectorTest, CreateAndIterate) { const int kNumElements = 9; InlinedVector<int, 2> v; + EXPECT_TRUE(v.empty()); for (int i = 0; i < kNumElements; ++i) { v.push_back(i); } EXPECT_EQ(static_cast<size_t>(kNumElements), v.size()); + EXPECT_FALSE(v.empty()); for (int i = 0; i < kNumElements; ++i) { EXPECT_EQ(i, v[i]); EXPECT_EQ(i, &v[i] - &v[0]); // Ensure contiguous allocation. |