Add atoi tests
This commit is contained in:
28
real_tests/ft_atoi/00_launcher.c
Normal file
28
real_tests/ft_atoi/00_launcher.c
Normal file
@@ -0,0 +1,28 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 00_launcher.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: dgaillet <dgaillet@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/01/24 16:22:35 by dgaillet #+# #+# */
|
||||
/* Updated: 2026/01/24 16:22:36 by dgaillet ### ########lyon.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../tests.h"
|
||||
|
||||
int atoi_launcher(void)
|
||||
{
|
||||
t_unit_test *testlist;
|
||||
size_t res;
|
||||
|
||||
testlist = NULL;
|
||||
load_test(&testlist, "OK test", &atoi_ok_test);
|
||||
load_test(&testlist, "KO test", &atoi_ko_test);
|
||||
load_test(&testlist, "SIGSEGV test", &atoi_sigsegv_test);
|
||||
load_test(&testlist, "SIGBUS test", &atoi_sigbus_test);
|
||||
res = launch_tests(testlist, "atoi");
|
||||
clear_tests(&testlist);
|
||||
return (res);
|
||||
}
|
||||
Reference in New Issue
Block a user