small unit testing framework for c. wrote this cs141, it should help you unit test your code.