Closed mfunyu closed 1 year ago
Hello! Thanks for contributing to the libft unit test.
Note that this repository is not maintained by the owner anymore, instead there is a bot that will automatically merge any reviewed pull requests. If you feel like it, here are some links that can help you submiting a change in the code base::
For the two functions that are listed below, there is an edge case that many students tend to miss. Add test cases to cover these cases.
strlcat
strlcat(NULL, "abc", 0);
<- does not crushstrlcat(NULL, "abc", 1);
<- crushstrlcat("abc", NULL, 0);
<- crushstrnstr
strnstr(NULL, "abc", 0);
<- does not crushstrnstr(NULL, "abc", 1);
<- crushstrnstr("abc", NULL, 0);
<- crush