Comment
Comment by bjourne
I write unit tests for my C code all that time. It's not difficult if you use a good build system and if you are willing to stomach some boilerplate. Here is one test from my "test suite" for my npy library:
I know I could have some pre-processor generate parts of the tests, but I prefer to KISS.