tests multi types

This commit is contained in:
hugogogo
2022-06-15 19:33:39 +02:00
parent 005382a3ac
commit bb4ac9963d
6 changed files with 200 additions and 136 deletions

View File

@@ -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