Mon, 19 Jun 2006
Unit Tests
Sorry, no dharma tonight. I was writing unit tests for Lola, more specifically for the flat file database, which I call Metabase. So far new and create pass their tests. I'm still working on add. I'd be more enthusiastic about testing if there weren't more lines in the test file than the code tested. I'm going to wind up writing 5000 lines of tests for a 2000 line file. Still, writing tests is addictive, like eating potato chips. Just one more test, get it to pass. Then the cycle starts again. Sixteen tests so far, fourteen pass. Which is why there's no dharma post tonight.
