tests multi types
This commit is contained in:
@@ -1,9 +1,24 @@
|
||||
#ifndef TESTS_VECTORS_CPP
|
||||
#define TESTS_VECTORS_CPP
|
||||
|
||||
#include "tests.hpp"
|
||||
#include "tests_utils.hpp"
|
||||
|
||||
//TEST2(test_simple(), "test")
|
||||
TEST(test_simple)
|
||||
{
|
||||
// title
|
||||
TITLE(cplusplus.com reference)
|
||||
|
||||
T myints[] = {VAL(16),VAL(2),VAL(77),VAL(29)};
|
||||
ft::vector<T> myvector (myints, myints + sizeof(myints) / sizeof(T) );
|
||||
|
||||
for (typename ft::vector<T>::iterator it = myvector.begin(); it != myvector.end(); ++it)
|
||||
std::cout << ' ' << *it;
|
||||
std::cout << '\n';
|
||||
}
|
||||
//TEST2END
|
||||
|
||||
/*
|
||||
void tests_vector_constructor()
|
||||
{
|
||||
TEST(vector::vector (constructor))
|
||||
@@ -1136,5 +1151,6 @@ void tests_vector_reverse_iterators()
|
||||
}
|
||||
TESTEND
|
||||
}
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user