ft_strnstr()
This commit is contained in:
parent
25cee93b16
commit
3043d38bf0
3 changed files with 145 additions and 3 deletions
10
Makefile
10
Makefile
|
|
@ -6,7 +6,7 @@
|
|||
# By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/10/03 18:03:12 by lalgarra #+# #+# #
|
||||
# Updated: 2025/10/06 20:06:11 by lalgarra ### ########.fr #
|
||||
# Updated: 2025/10/07 18:08:12 by lalgarra ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
|
|
@ -15,13 +15,14 @@ LIBDIR = ../repo_libft_algarra
|
|||
#LIBDIR = ../vogsphere_repo
|
||||
|
||||
CFLAGS += -Wall -Wextra -Werror -g3 -iquote $(LIBDIR) \
|
||||
-fsanitize=address -Wanalyzer-malloc-leak
|
||||
# -fsanitize=address -Wanalyzer-malloc-leak
|
||||
|
||||
TESTS := ft_isalpha_test ft_isdigit_test ft_isalnum_test ft_isascii_test \
|
||||
ft_isprint_test ft_toupper_test ft_tolower_test ft_strlen_test \
|
||||
ft_memset_test ft_bzero_test ft_memcpy_test ft_calloc_test \
|
||||
ft_memmove_test ft_strlcpy_test ft_strlcat_test ft_strchr_test \
|
||||
ft_strrchr_test ft_strncmp_test ft_memcmp_test
|
||||
ft_strrchr_test ft_strncmp_test ft_memcmp_test ft_strnstr_test \
|
||||
|
||||
|
||||
%_test : %_test.c
|
||||
$(CC) $(CFLAGS) $*_test.c -L$(LIBDIR) -lft -o $*_test
|
||||
|
|
@ -29,6 +30,9 @@ TESTS := ft_isalpha_test ft_isdigit_test ft_isalnum_test ft_isascii_test \
|
|||
%_actual.output : %_test
|
||||
@./$*_test 2>&1 > ./$*_actual.output ;
|
||||
|
||||
#alternative command
|
||||
# @script -qc './$*_test &> ./$*_actual.output' 2> ./$*_actual.output 1> /dev/null
|
||||
|
||||
%_report : %_test %_actual.output
|
||||
-(diff -a $*_expected.output $*_actual.output \
|
||||
&& echo "Test OK") > $*_report
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue