50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
#ifndef TESTS_PROTO_HPP
|
|
# define TESTS_PROTO_HPP
|
|
|
|
#include <vector>
|
|
|
|
// ************************************
|
|
// global declarations
|
|
struct A_test { virtual void func() = 0; };
|
|
std::vector<A_test*> test_list;
|
|
void add_to_list(A_test * s1, A_test * s2, A_test * s3, A_test * s4)
|
|
{ test_list.push_back(s1)
|
|
; test_list.push_back(s2)
|
|
; test_list.push_back(s3)
|
|
; test_list.push_back(s4); }
|
|
|
|
|
|
// *********************************************
|
|
// 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
|
|
|