Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Duncan White
C-datadec
Commits
bd690078
Commit
bd690078
authored
May 20, 2014
by
Duncan White
Browse files
k&r -> ansi + ONE BUG FIX - lengths of il3 and il4 were length(il2):-)
parent
57bbe5f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/ctest.c
View file @
bd690078
...
...
@@ -5,7 +5,7 @@
intlist
int1
,
int2
,
int3
;
test_intlist
()
void
test_intlist
(
void
)
{
int1
=
intlist_nil
();
int2
=
intlist_cons
(
11
,
int1
);
...
...
@@ -22,7 +22,7 @@ test_intlist()
}
test_illist
()
void
test_illist
(
void
)
{
illist
il1
,
il2
,
il3
,
il4
;
...
...
@@ -34,13 +34,13 @@ test_illist()
printf
(
"illists:
\n
"
);
printf
(
"
\n
il1: len %d, "
,
length
(
il1
)
);
print_illist
(
stdout
,
il1
);
printf
(
"
\n
il2: len %d, "
,
length
(
il2
)
);
print_illist
(
stdout
,
il2
);
printf
(
"
\n
il3: len %d, "
,
length
(
il
2
)
);
print_illist
(
stdout
,
il3
);
printf
(
"
\n
il4: len %d, "
,
length
(
il
2
)
);
print_illist
(
stdout
,
il4
);
printf
(
"
\n
il3: len %d, "
,
length
(
il
3
)
);
print_illist
(
stdout
,
il3
);
printf
(
"
\n
il4: len %d, "
,
length
(
il
4
)
);
print_illist
(
stdout
,
il4
);
printf
(
"
\n\n
"
);
}
test_idtree
()
void
test_idtree
(
void
)
{
idtree
id1
,
id2
,
id3
,
id4
,
id5
,
id6
;
...
...
@@ -62,10 +62,11 @@ test_idtree()
}
main
()
int
main
(
void
)
{
init_cx
();
test_intlist
();
test_illist
();
test_idtree
();
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment