added bgoulard lib + made lib sources in their own directory in build/ for readability

This commit is contained in:
B.Goulard 2024-11-01 00:00:14 +01:00
parent 83cc8419a0
commit 0a390934d6
457 changed files with 21807 additions and 61 deletions

View file

@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tests_pair_get_first.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/06 16:17:14 by bgoulard #+# #+# */
/* Updated: 2024/07/06 17:04:32 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_pair.h"
#include "ft_pair_types.h"
#include "tests/pair_tests.h"
int test_pair_first(void)
{
t_pair pair;
void *a;
void *b;
a = (void *)0xDEADBEEF;
b = (void *)0xDEADDEAD;
ft_pair_set(&pair, a, b);
if (ft_pair_first(&pair) != a)
return (1);
if (ft_pair_first(NULL) != NULL)
return (2);
return (0);
}