5 void mu_test_factorial_zero() {
6 unsigned x = factorial(0);
10 void mu_test_factorial_one() {
11 unsigned x = factorial(1);
12 /* this test is wrong on purpose, to see how it fails */
16 void mu_test_factorial_positive() {
17 unsigned x = factorial(2);
18 /* this test is wrong on purpose, to see how it fails */
22 /* we don't want to continue if this fails, because the next result
23 * depends on this one. This one will succeed. */
30 mu_ensure(x == 6); /* same as before, but this one will fail. */
32 x = factorial(x-15); /* and this will never be executed */
33 mu_check(x == 362881); /* but if excecuted, will fail */