63 lines
1.5 KiB
C++
63 lines
1.5 KiB
C++
#ifndef TESTS_PROTO_HPP
|
|
# define TESTS_PROTO_HPP
|
|
|
|
#include <vector>
|
|
#include "A_test.hpp"
|
|
|
|
// ************************************
|
|
// global declarations
|
|
std::vector< std::vector<A_test*> > test_list;
|
|
void add_to_list(std::string s, A_test* s1, A_test* s2, A_test* s3, A_test* s4) {
|
|
|
|
std::vector<A_test*> test_sub_list;
|
|
|
|
s1->title = s;
|
|
s2->title = s;
|
|
s3->title = s;
|
|
s4->title = s;
|
|
s1->type = "int";
|
|
s2->type = "char";
|
|
s3->type = "std::string";
|
|
s4->type = "mystruct";
|
|
test_sub_list.push_back(s1);
|
|
test_sub_list.push_back(s2);
|
|
test_sub_list.push_back(s3);
|
|
test_sub_list.push_back(s4);
|
|
test_list.push_back(test_sub_list);
|
|
}
|
|
|
|
|
|
// *********************************************
|
|
// prototypes
|
|
void test_simple();
|
|
void tests_vector_constructor();
|
|
void tests_vector_operator_assignation();
|
|
void tests_vector_begin();
|
|
void tests_vector_end();
|
|
void tests_vector_rbegin();
|
|
void tests_vector_rend();
|
|
void tests_vector_size();
|
|
void tests_vector_max_size();
|
|
void tests_vector_resize();
|
|
void tests_vector_capacity();
|
|
void tests_vector_empty();
|
|
void tests_vector_reserve();
|
|
void tests_vector_operator_access();
|
|
void tests_vector_at();
|
|
void tests_vector_front();
|
|
void tests_vector_back();
|
|
void tests_vector_assign();
|
|
void tests_vector_push_back();
|
|
void tests_vector_pop_back();
|
|
void tests_vector_insert();
|
|
void tests_vector_erase();
|
|
void tests_vector_swap();
|
|
void tests_vector_clear();
|
|
void tests_vector_get_allocator();
|
|
void tests_vector_relational_operators();
|
|
void tests_vector_swap_non_member();
|
|
void tests_vector_reverse_iterators();
|
|
|
|
#endif
|
|
|