alelievr / libft-unit-test

455 stars 88 forks source link

add check for strlcpy dstsize zero #74

Closed vrilly closed 4 years ago

vrilly commented 4 years ago

Something that moulinette checks for and many students here fail on it.

Testing ft_strlcpy
 [!] Error for values "Je test un strncpy,
car j'aime bien ca!" with size "0" - Expected:  - Got: Je test un strncpy,
car j'aime bien ca! and Expected len: 39 - Got 39
 [!] Error for values "azlijazfpozekfpozefpoezfzef j'aime bien ca!" with size "0" - Expected:  - Got: azlijazfpozekfpozefpoezfzef j'aime bien ca! and Expected len: 43 - Got 43
 [*] ft_strlcpy : [ko]
alelievr commented 4 years ago

Thanks for your contribution !