visionmedia/commander.c — pull request #2 by rhersen (2012-06-26 21:06:01+00:00)
Title: Unit tests

I wrote some unit tests for commander.c. I had to make `exit()` a member function of `struct command` in order to mock it, and I'm also using setjmp/longjmp to stop execution and continue the test suite whenever the mocked `exit()` is called.