stack almost good
This commit is contained in:
29
tests/tests_stack.cpp
Normal file
29
tests/tests_stack.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#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
|
||||
}
|
||||
Reference in New Issue
Block a user