alelievr / libft-unit-test

457 stars 88 forks source link

test missing on ft_strrchr.c #49

Closed hugodu69 closed 5 years ago

hugodu69 commented 5 years ago

my ft_strrchr succeed all your tests but it's actually wrong, it doesn't check the str[0] character, so I think you'r missing a test, something for this situation : ft_strrchr("abbbbbbbb", 'a'); which should render "abbbbbbbb" (and not NULL like mine do...)

alelievr commented 5 years ago

Hi, this was fixed in 3b2d111, thanks for your contribution !