Closed alelievr closed 4 years ago
Yes, i just ported the old tests which wasn't covering all the case at all (mostly because nobody really uses the lists function of the libft because they were awful to work with). This implementation is a bit better though.
Currently there is no way to check for double free (exscept retrieving the message in the console sent by the system but unfortunately this will be platform dependent and that something i don't want). I need to implement an overload of the free function (like i did for malloc) and add counter / pointers freed.
There is a way with your macro to catch a double free and return success ? ft_lstdelone(l, lstdelone_f); free(l->content);
if there is no double free, test fail. And if there is, test ok.