/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* tests_map_set_cmphash.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bgoulard +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/19 18:13:15 by bgoulard #+# #+# */ /* Updated: 2024/06/01 12:14:24 by bgoulard ### ########.fr */ /* */ /* ************************************************************************** */ #include "ft_map.h" #include "ft_map_types.h" int test_map_set_cmp(void) { t_map *map; map = ft_map_create(10); ft_map_set_cmp(map, NULL); if (map->cmp) return (1); ft_map_destroy(map); return (0); } int test_map_set_hash(void) { t_map *map; map = ft_map_create(10); ft_map_set_hash(map, NULL); if (map->hash) return (1); ft_map_destroy(map); return (0); }