added bgoulard lib + made lib sources in their own directory in build/ for readability
This commit is contained in:
parent
83cc8419a0
commit
0a390934d6
457 changed files with 21807 additions and 61 deletions
31
libft_personal/tests/ft_args/tests_version.c
Normal file
31
libft_personal/tests/ft_args/tests_version.c
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test_version.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/23 22:37:13 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/05/23 22:38:27 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft_args.h"
|
||||
#include "ft_string.h"
|
||||
#include <unistd.h>
|
||||
|
||||
int getset_version_test(void)
|
||||
{
|
||||
char *s1;
|
||||
char *s2;
|
||||
|
||||
s1 = "toto";
|
||||
s2 = 0;
|
||||
ft_set_version(s1);
|
||||
if (ft_progversion() != s1)
|
||||
return (ft_putstr_fd(ft_progversion(), STDERR_FILENO), 1);
|
||||
ft_set_version(s2);
|
||||
if (ft_progversion() == s2)
|
||||
return (2);
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue