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