I mean, something on the like of Junit for Java, which allows you to develop tests along with your code, so when you change the code you can automatically verify its correctness.
Just a thought...maybe someone crazy almost as me already developed some kind of pkg to do this ...