Yep, tests would sort out the confusion. Tests are the easiest way to document your code.
Not a member of The Register? Create a new account here.
Remember me on this computer? Post anonymously?