Last week I set myself the goal of getting my rewrite ofYAML::ConfigFile (since renamed Config::YAML to fit with all the otherConfig modules) out the door by the end of the month. Well, I'm gonnabe about 12 hours late, but that's still pretty good.
This is the first thing I've written that's being coded at the sametime as its tests. I have to say, it's actually pretty neat. Not onlydoes it assure you that your logic is working properly, but it keepsyou from having to either write throwaway test scripts (which probablywon't test most cases), or try to use the unfinished code in a realscript, or get everything written only to find out it doesn't work andthen have to do it all over again.
Also, writing the little one-line test cases is kinda fun, as iswatching them count by when run. Whee!