[Shootout-list] Simple tests
John Skaller
skaller@users.sourceforge.net
Mon, 20 Jun 2005 07:47:00 +1000
On Sat, 2005-06-18 at 12:19 +0300, Einar Karttunen wrote:
> For these reasons I think we should keep the simple tests in the
> Shootout. Complex tests have their place too, but I think that
> discarding the simple ones would lose much of the original spirit.
I do not disagree. The point is that 'ackermann' is not suitable
because it doesn't accept a wide enough set of inputs.
The following function is does:
int add(int a, int b, int c, int d, int e, int f) {
return a + b + c + d + e + f;
}
Of course this function is no good either, because
it would execute too quickly.