git.joshuawise.com
/
firearm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add a .gitattributes file to force hex files to be binary-like.
[firearm.git]
/
tests
/
ack.c
1
//#test return 61
2
3
int ack(int m, int n)
4
{
5
if(m == 0) {
6
return n + 1;
7
}
8
else if(n == 0) {
9
return ack(m - 1, 1);
10
}
11
else {
12
return ack(m - 1, ack(m, n - 1));
13
}
14
}
15
16
void acktest()
17
{ int x;
18
if ((x = ack(3, 3)) != 61)
19
{
20
puthex(x);
21
puts(" -> FAIL\n");
22
puthex(x);
23
}
24
else
25
puts("PASS\n");
26
}
This page took
0.018121 seconds
and
4
git commands to generate.