#include "easyfind.hpp" int main(void) { std::cout << "\n---Test0---\n" << std::endl; { std::cout << "list: 2, 4, 6, 8, 10, 12, -1" << std::endl; int tab[] = {2, 4, 6, 8, 10, 12, -1}; std::cout << "\n"; std::vector vec0(tab, tab + sizeof(tab) / sizeof(int)); std::list list0(tab, tab + sizeof(tab) / sizeof(int)); std::cout << "test with vector on '2': "; easyfind(vec0, 2); std::cout << "test with vector on '21214': "; easyfind(vec0, 21214); std::cout << "\n"; std::cout << "test with list on '2': "; easyfind(list0, 2); std::cout << "test with list on '21214': "; easyfind(list0, 21214); } std::cout << "\n---EndTest---\n" << std::endl; return 0; }