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,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tests_pow.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/23 23:21:25 by bgoulard #+# #+# */
/* Updated: 2024/05/24 01:01:12 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_math.h"
int test_ft_pow(void)
{
size_t x;
size_t y;
x = 2;
y = 3;
if (ft_pow(x, y) != 8)
return (1);
y = 0;
if (ft_pow(x, y) != 1)
return (1);
y = 1;
if (ft_pow(x, y) != 2)
return (1);
if (ft_pow(0, y) != 0)
return (1);
return (0);
}