added bgoulard lib + made lib sources in their own directory in build/ for readability
This commit is contained in:
parent
83cc8419a0
commit
0a390934d6
457 changed files with 21807 additions and 61 deletions
37
libft_personal/tests/ft_vector/vector_tests.c
Normal file
37
libft_personal/tests/ft_vector/vector_tests.c
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* vector_tests.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/13 08:30:25 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/06/02 11:33:20 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "tests/tests.h"
|
||||
#include "tests/vector_tests.h"
|
||||
|
||||
int tests_vector(void)
|
||||
{
|
||||
int collect;
|
||||
const t_test tests[] = {
|
||||
{"add", test_vec_add}, {"apply", test_vec_apply}, {"at", test_vec_at}, \
|
||||
{"cat", test_vec_cat}, {"clear", test_vec_clear}, \
|
||||
{"destroy", test_vec_destroy}, {"filter", test_vec_filter}, \
|
||||
{"map", test_vec_map}, {"new", test_vec_new}, {"pop", test_vec_pop}, \
|
||||
{"from_size", test_vec_from_size}, {"from_array", test_vec_from_array}, \
|
||||
{"convert_alloc_array", test_vec_convert_alloc_array}, \
|
||||
{"remove", test_vec_remove}, {"remove_if", test_vec_remove_if}, \
|
||||
{"reserve", test_vec_reserve}, {"reverse", test_vec_reverse}, \
|
||||
{"shift", test_vec_shift}, {"sort", test_vec_sort}, \
|
||||
{"shrink", test_vec_shrink}, {"swap", test_vec_swap}, \
|
||||
{"get", test_vec_get}, {"to_array", test_vec_to_array}, \
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
collect = 0;
|
||||
run_test(tests, &collect);
|
||||
return (collect);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue