removing the libft of rparodi
This commit is contained in:
parent
0391323626
commit
be6038dcc8
523 changed files with 724 additions and 3336 deletions
32
libft/tests/ft_string/ft_str/test_str_isdigit.c
Normal file
32
libft/tests/ft_string/ft_str/test_str_isdigit.c
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test_str_isdigit.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/29 08:10:32 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/06/02 07:43:32 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft_string.h"
|
||||
|
||||
int test_str_isdigit(void)
|
||||
{
|
||||
if (ft_str_isdigit("00000000000000000000012") != 1)
|
||||
return (1);
|
||||
if (ft_str_isdigit("1234567890q") != 0)
|
||||
return (2);
|
||||
if (ft_str_isdigit("8^)") != 0)
|
||||
return (3);
|
||||
if (ft_str_isdigit("42.5") != 0)
|
||||
return (4);
|
||||
if (ft_str_isdigit("+00") != 0)
|
||||
return (5);
|
||||
if (ft_str_isdigit("") != 0)
|
||||
return (6);
|
||||
if (ft_str_isdigit(NULL) != false)
|
||||
return (7);
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue