removing the libft of rparodi
This commit is contained in:
parent
0391323626
commit
be6038dcc8
523 changed files with 724 additions and 3336 deletions
|
|
@ -1,35 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test_append.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/25 15:57:50 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/06/02 10:24:16 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft_string.h"
|
||||
#include "ft_string_types.h"
|
||||
|
||||
int test_string_append(void)
|
||||
{
|
||||
t_string *str;
|
||||
|
||||
str = ft_string_from("Hello");
|
||||
ft_string_append(str, " World");
|
||||
if (ft_string_cmp(str, "Hello World") != 0)
|
||||
return (1);
|
||||
if (str->length != 11 || str->capacity < 11)
|
||||
return (2);
|
||||
ft_string_destroy(&str);
|
||||
str = ft_string_from("hi");
|
||||
ft_string_append(str, "i");
|
||||
if (ft_string_cmp(str, "hii") != 0)
|
||||
return (3);
|
||||
if (str->length != 3 || str->capacity < 3)
|
||||
return (4);
|
||||
ft_string_destroy(&str);
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue