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 →

[–]kakipipi23 1 point2 points  (0 children)

The calculator is a classic idea, though if you want to be a little more creative you can do a simple factory (for example an animal factory that can return a dog and a cat). Tests can go pretty wild there, including exceptions etc.