fix: patch a libunit bug
This commit is contained in:
25
real_tests/ft_strlen/03_large.c
Normal file
25
real_tests/ft_strlen/03_large.c
Normal file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 03_large.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: elagouch <elagouch@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/01/24 15:38:17 by elagouch #+# #+# */
|
||||
/* Updated: 2026/01/24 16:36:42 by elagouch ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../tests.h"
|
||||
|
||||
int test_large(void) {
|
||||
size_t i;
|
||||
char s[10000];
|
||||
|
||||
i = 0;
|
||||
while (i < sizeof(s)) {
|
||||
s[i] = ' ';
|
||||
i++;
|
||||
}
|
||||
return (ft_strlen(s) == sizeof(s) + 1);
|
||||
}
|
||||
Reference in New Issue
Block a user