Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixailz committed Oct 12, 2023
1 parent 6b27021 commit 10c290a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions test/src/check/is_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
/* By: brda-sil <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/09 02:45:23 by brda-sil #+# #+# */
/* Updated: 2023/07/31 20:11:44 by brda-sil ### ########.fr */
/* Updated: 2023/10/12 20:02:20 by brda-sil ### ########.fr */
/* */
/* ************************************************************************** */

#include "libft_print.h"
#include "libft_check.h"
#include "libft_error.h"

#ifndef CI_TEST
# define CI_TEST FALSE
Expand All @@ -29,7 +28,7 @@ int interactive(int ac, char **av)
t_bool return_value;

if (ac != 2)
return (ft_perror("args\n"));
return (ft_perr("args\n", 1));
return_value = ft_is_str(av[1], ft_isblank);
if (return_value)
ft_printf("pass ft_isblank(%s)\n", av[1]);
Expand Down
4 changes: 2 additions & 2 deletions test/src/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: brda-sil <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/14 04:10:51 by brda-sil #+# #+# */
/* Updated: 2023/10/12 19:56:56 by brda-sil ### ########.fr */
/* Updated: 2023/10/12 20:02:31 by brda-sil ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -42,7 +42,7 @@ int interactive(int ac, char **av)
return (ft_perr("not enought args\n", 1));
ip = ft_ipstr(av[1]);
if (!ip && ft_strncmp("0.0.0.0\0", av[1], 8))
return (ft_perror("invalid ip error\n", 2));
return (ft_perr("invalid ip error\n", 2));
print_dcomp(ip);
ft_putip_fd(ip, 1);
ft_putendl_fd("", 1);
Expand Down

0 comments on commit 10c290a

Please sign in to comment.