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
39
libft_personal/tests/ft_map/map_tests.c
Normal file
39
libft_personal/tests/ft_map/map_tests.c
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* map_tests.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/11 18:27:46 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/06/07 14:59:37 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "tests/tests.h"
|
||||
#include "tests/map_tests.h"
|
||||
|
||||
// see with --leak-check=full
|
||||
int tests_map(void)
|
||||
{
|
||||
int collect;
|
||||
const t_test test[] = {
|
||||
{"create", test_map_create},
|
||||
{"destroy", test_map_destroy}, // here
|
||||
{"destroy_free", test_map_destroy_free},
|
||||
{"clear", test_map_clear}, // here
|
||||
{"set", test_map_set},
|
||||
{"set_cmp", test_map_set_cmp},
|
||||
{"set_hash", test_map_set_hash},
|
||||
{"get", test_map_get},
|
||||
{"size", test_map_size},
|
||||
{"capacity", test_map_capacity},
|
||||
{"remove", test_map_remove}, // here
|
||||
{"hash", test_map_hash},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
collect = 0;
|
||||
run_test(test, &collect);
|
||||
return (collect);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue