liblcthw
liblcthw copied to clipboard
Ex 33 (list sorting) -- possible typo
https://github.com/zedshaw/liblcthw/blob/master/tests/list_algos_tests.c#L54
Here we are calling List_create
, a function that until now has taken no args, on words
, which is the list of words that we just destroyed.
Should this line be words = create_words();
?
Oh, on second thought, that test case needs to be an empty list.
Should it be words = List_create();
?
I was able to get the test to pass after changing it to words = List_create()
which seems to make more sense. I'll make a PR.