start project

This commit is contained in:
2025-03-27 17:11:46 +01:00
commit 589addcb91
9 changed files with 113 additions and 0 deletions

27
tests.c Normal file
View File

@ -0,0 +1,27 @@
#include <stdlib.h>
#include <stdio.h>
size_t ft_strlen(char *str);
void test_strlen(void)
{
int nb_tests;
int passed;
nb_tests = 3;
passed = 0;
if(ft_strlen("hello") == 5)
passed++;
if(ft_strlen("") == 0)
passed++;
if(ft_strlen(NULL) == 0)
passed++;
}
int main(void)
{
test_strlen();
}