|
|
@@ -39,9 +39,14 @@ namespace Tdeque { |
|
|
|
TEST(Tdeque, contruct) {
|
|
|
|
deque<int, 8> q1;
|
|
|
|
deque<int, 8> q2{1, 2, 3, 4, 5, 6, 7, 8};
|
|
|
|
deque<int, 8> q3{1, 2, 3, 4, 5};
|
|
|
|
|
|
|
|
EXPECT_EQ (8UL, q1.capacity());
|
|
|
|
EXPECT_EQ (0UL, q1.size());
|
|
|
|
EXPECT_EQ (8UL, q2.capacity());
|
|
|
|
EXPECT_EQ (8UL, q2.size());
|
|
|
|
EXPECT_EQ (8UL, q3.capacity());
|
|
|
|
EXPECT_EQ (5UL, q3.size());
|
|
|
|
}
|
|
|
|
|
|
|
|
// simple push-pop functionality
|
|
|
|