Writing tests

Cutter — An Unit Testing Framework for C.
Assertions — Checks that your program works as you expect.