FIX: ft_atoi names + strncmp test WIP

This commit is contained in:
2026-01-25 11:43:18 +01:00
parent 2f039c273c
commit 16b6a0c665
6 changed files with 62 additions and 0 deletions

View File

@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 01_ok.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/24 17:22:48 by dgaillet #+# #+# */
/* Updated: 2026/01/24 17:22:51 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "../tests.h"
#include "libft.h"

View File

@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 02_ko.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/24 17:23:00 by dgaillet #+# #+# */
/* Updated: 2026/01/24 17:23:01 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "../tests.h"
int atoi_ko_test(void)

View File

@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 03_sigsegv.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/24 17:23:10 by dgaillet #+# #+# */
/* Updated: 2026/01/24 17:23:11 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "../tests.h"
#include <stdlib.h>

View File

@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 04_sigbus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/24 17:23:23 by dgaillet #+# #+# */
/* Updated: 2026/01/24 17:23:24 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "../tests.h"
int atoi_sigbus_test(void)

View File

@@ -0,0 +1,14 @@
#include "../tests.h"
int strncmp_launcher(void)
{
t_unit_test *testlist;
size_t res;
testlist = NULL;
load_test(&testlist, "OK test", &atoi_ok_test);
res = launch_tests(testlist, "ft_strncmp");
clear_tests(&testlist);
return (res);
}

View File