liblcthw
liblcthw copied to clipboard
The library you create when you are done with Learn C The Hard Way
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...
Self-explanatory :)
In ringbuffer.c, and in exercise 44 of LCTHW, you have a couple instances similar to: ``` void *result = memcpy(buffer->buffer + buffer->end, data, length); check(result != NULL, "Failed to write...
Related to issue #37 To verify that the test_destroy() works we need to actually test something.
As I struggled to understand why the code did not work on either Windows and Linux but it worked fine on OSX, I finally figured it out, and it works...
## The Problem Missing a `test` to check if the code actually worked or not. https://github.com/zedshaw/liblcthw/blob/1249486dc6c4dfc6bade728423097351698f3f27/tests/list_tests.c#L18-L24 ## My Approach Learning from p. 149 "Question Authority". 😉 Using TDD (see attached...