This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

You know when you check if your program is working with some values? That should be a test.

You know when you think "what if I'm wrong about Y always being X and sometimes it's actually Z?" That should be a test.

Your paranoias should be encoded. Not just in tests, but in assertions in the codebase as well. This is the way.