liblcthw icon indicating copy to clipboard operation
liblcthw copied to clipboard

Ex 33 (list sorting) -- possible typo

Open daveyarwood opened this issue 8 years ago • 2 comments

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();?

daveyarwood avatar Apr 14 '16 14:04 daveyarwood

Oh, on second thought, that test case needs to be an empty list.

Should it be words = List_create();?

daveyarwood avatar Apr 14 '16 14:04 daveyarwood

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.

daveyarwood avatar Apr 28 '16 12:04 daveyarwood