Any time you use the console or a printed output to debug something, that is an embryonic test assertion in the making, and all you have to do is move it to a proper suite. ;)<p>If you are doing it because you are deep in some nested conditionals... you need to refactor.