start project
This commit is contained in:
27
tests.c
Normal file
27
tests.c
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user