Hello. I'm doing Libft with your unit test.
It seems that in strncmp, there is no testcase in particular situation. ( similar with #41 )
My code was this
int ft_strncmp(const char *s1, const char *s2, size_t n)
{
size_t locate;
locate = -1;
while (++locate < n && *s1 && *s2)
{
if (*s1 != *s2)
break;
s1++;
s2++;
}
return ((unsigned char)(*s1) - (unsigned char)(*s2));
}
and all of your unit test seems to OK, but when s1 = "abc", s2 = "abcde", n = 3, my ft function can't find s1 and s2 is same. I think you should add test similar to #41.
Thank you for making this great unit test program.
Hello. I'm doing Libft with your unit test. It seems that in strncmp, there is no testcase in particular situation. ( similar with #41 )
My code was this
and all of your unit test seems to OK, but when s1 = "abc", s2 = "abcde", n = 3, my ft function can't find s1 and s2 is same. I think you should add test similar to #41.
Thank you for making this great unit test program.