philsquared/Catch — Issue #57: Calculation error in wiki/Tutorial
Author: CTMacUser
Created: 2011-10-16 23:40:13+00:00
State: open

This is from looking at "https://github.com/philsquared/Catch/wiki/Tutorial", under the "Writing tests" section. The factorial of 0 is 1, not 0 as you give in your example.

But instead of just silently correcting the error and being done with it, why don't you incorporate it as part of your example! Maybe you can describe that some smart@$$ over the Internet told you to correct your test for the factorial of 0. You do so in the test case, but now your tests come up with an extra error, because you never corrected the actual function! Then you do that correction (quickest by changing the second occurrence of "number" in line 6 to "1") too.