2 * This file is part of mutest, a simple micro unit testing framework for C.
4 * mutest was written by Leandro Lucarella <llucax@gmail.com> and is released
5 * under the BOLA license, please see the LICENSE file or visit:
6 * http://blitiri.com.ar/p/bola/
8 * This is an example module that calculates a factorial.
10 * Please, read the README file for more details.
13 unsigned factorial(unsigned x) {
16 return x * factorial(x-1);