Cub3D/libft/tests/ft_map/tests_map_cappacity.c
2024-11-08 19:37:30 +01:00

27 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tests_map_cappacity.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/19 18:16:49 by bgoulard #+# #+# */
/* Updated: 2024/06/01 12:03:26 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_map.h"
#include "ft_map_types.h"
int test_map_capacity(void)
{
t_map *map;
size_t ret;
map = ft_map_create(10);
ret = ft_map_capacity(map);
if (ret != 10)
return (1);
ft_map_destroy(map);
return (0);
}