Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Duncan White
C-datadec
Commits
bd690078
Commit
bd690078
authored
May 20, 2014
by
Duncan White
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
test/ctest.c
test/ctest.c
+7
-6
No files found.
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
Markdown
is supported
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