30 lines
792 B
C++
30 lines
792 B
C++
|
|
#include "tests_utils.hpp"
|
|
|
|
TEST(tests_stack_constructor)
|
|
{
|
|
// title
|
|
TITLE(simple test)
|
|
|
|
std::deque<T> mydeque (3,VAL(100)); // deque with 3 elements
|
|
std::vector<T> myvector (2,VAL(200)); // vector with 2 elements
|
|
|
|
ft::stack<T> first; // empty stack
|
|
ft::stack<T> second (mydeque); // stack initialized to copy of deque
|
|
|
|
// ft::stack< T,std::vector<T> > third; // empty stack using vector
|
|
// ft::stack< T,std::vector<T> > fourth (myvector);
|
|
//
|
|
// std::cout << "size of first: " << first.size() << '\n';
|
|
// std::cout << "size of second: " << second.size() << '\n';
|
|
// std::cout << "size of third: " << third.size() << '\n';
|
|
// std::cout << "size of fourth: " << fourth.size() << '\n';
|
|
//
|
|
// PRINT(first)
|
|
// PRINT(second)
|
|
// PRINT(third)
|
|
// PRINT(fourth)
|
|
//
|
|
// DELETE
|
|
}
|