removing the libft of rparodi
This commit is contained in:
parent
0391323626
commit
be6038dcc8
523 changed files with 724 additions and 3336 deletions
27
libft/tests/ft_string/ft_char/tests_isascii.c
Normal file
27
libft/tests/ft_string/ft_char/tests_isascii.c
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test_isascii.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/23 15:56:46 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/05/23 16:30:15 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft_char.h"
|
||||
|
||||
int test_ft_isascii(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = -1;
|
||||
while (i < 256)
|
||||
{
|
||||
if (ft_isascii(i) != (i >= 0 && i <= 127))
|
||||
return (1);
|
||||
i++;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue