alelievr / libft-unit-test

455 stars 88 forks source link

moulinette change for ft_strtrim #76

Closed CyberDuck79 closed 4 years ago

CyberDuck79 commented 4 years ago

Hello ! just to say that test of the moulinette have change for ft_strtrim :

Testing ft_strtrim
 [!] Error for value "       " - Expected: "       " - Got: ""

the test of the unit test is (far more logical for me...) void string but moulinette expected the dup of the src string.

CyberDuck79 commented 4 years ago

OK that's was not that but you can add a test to the libft-unit for strtrim : if set == NULL return strdup(s1) the moulinette test is to send NULL set and expect a dup of the origin string.