Unit testing
I haven’t really gotten into the test driven design or unit testing stuff before (mainly because kams would require some serious “test harnesses” and I didn’t do that back when I should have), but since I started this new Brat project I thought it would be best to start off with some nice unit tests. In fact, it’s a pretty awesome thing to do when you are working on a grammar and a parser and you need to know what breaks.
But I’ve also discovered another benefit to unit testing: the psychological aspect. It seriously feels good when you see:
Started
......................................
Finished in 6.355985 seconds.
38 tests, 105 assertions, 0 failures, 0 errors
And I’m just getting started :)

