Open EvertonVaz opened 1 year ago
When I run the command francinette to test the entire libft, I get an error in two functions
Summary:
Failed tests: putendl_fd, putstr_fd
Errors found:
For ft_putstr_fd, in /nfs/homes/usr/francinette/tests/libft/fsoares/test_putstr_fd.c:
Error in test 5: ft_putstr_fd("\nend!", fd: -1): expected: "abcdef\n1234\t567\nend!", content of the file: ""
For ft_putendl_fd, in /nfs/homes/usr/francinette/tests/libft/fsoares/test_putendl_fd.c:
Error in test 5: ft_putendl_fd("end!", fd: -1): expected: "\nabcdef\n1234\n567\nend!\n", content of the file: ""
And when I run all functions I get OK
✔ Compiling tests: fsoares (my own) ℹ Testing: ft_putendl_fd : OK ft_putstr_fd : OK
And the fd -1 really doesn't exist, I thought of solving it in a very simple way, only checking if fd is -1 and turning it into a positive number...
Solution of the problem: https://github.com/xicodomingues/francinette/pull/68
When I run the command francinette to test the entire libft, I get an error in two functions
Summary:
Failed tests: putendl_fd, putstr_fd
Errors found:
For ft_putstr_fd, in /nfs/homes/usr/francinette/tests/libft/fsoares/test_putstr_fd.c:
Error in test 5: ft_putstr_fd("\nend!", fd: -1): expected: "abcdef\n1234\t567\nend!", content of the file: ""
For ft_putendl_fd, in /nfs/homes/usr/francinette/tests/libft/fsoares/test_putendl_fd.c:
Error in test 5: ft_putendl_fd("end!", fd: -1): expected: "\nabcdef\n1234\n567\nend!\n", content of the file: ""
And when I run all functions I get OK
✔ Compiling tests: fsoares (my own) ℹ Testing: ft_putendl_fd : OK ft_putstr_fd : OK
And the fd -1 really doesn't exist, I thought of solving it in a very simple way, only checking if fd is -1 and turning it into a positive number...