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
a6176167
Commit
a6176167
authored
Aug 25, 1992
by
dcw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reformatted slightly
parent
31a62e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
27 deletions
+14
-27
test/ctest.c
test/ctest.c
+14
-27
No files found.
test/ctest.c
View file @
a6176167
...
...
@@ -8,16 +8,13 @@ intlist int1, int2, int3;
test_intlist
()
{
int1
=
intlist_null
();
int2
=
intlist_cons
(
1
0
,
int1
);
int2
=
intlist_cons
(
1
1
,
int1
);
int3
=
intlist_cons
(
20
,
int2
);
printf
(
"intlists:
\n
"
);
printf
(
"
\n
int1: "
);
print_intlist
(
stdout
,
int1
);
printf
(
"
\n
int2: "
);
print_intlist
(
stdout
,
int2
);
printf
(
"
\n
int3: "
);
print_intlist
(
stdout
,
int3
);
printf
(
"
\n
int1: "
);
print_intlist
(
stdout
,
int1
);
printf
(
"
\n
int2: "
);
print_intlist
(
stdout
,
int2
);
printf
(
"
\n
int3: "
);
print_intlist
(
stdout
,
int3
);
printf
(
"
\n\n
"
);
}
...
...
@@ -32,14 +29,10 @@ test_illist()
il4
=
illist_cons
(
int3
,
il3
);
printf
(
"illists:
\n
"
);
printf
(
"
\n
il1: "
);
print_illist
(
stdout
,
il1
);
printf
(
"
\n
il2: "
);
print_illist
(
stdout
,
il2
);
printf
(
"
\n
il3: "
);
print_illist
(
stdout
,
il3
);
printf
(
"
\n
il4: "
);
print_illist
(
stdout
,
il4
);
printf
(
"
\n
il1: "
);
print_illist
(
stdout
,
il1
);
printf
(
"
\n
il2: "
);
print_illist
(
stdout
,
il2
);
printf
(
"
\n
il3: "
);
print_illist
(
stdout
,
il3
);
printf
(
"
\n
il4: "
);
print_illist
(
stdout
,
il4
);
printf
(
"
\n\n
"
);
}
...
...
@@ -56,18 +49,12 @@ test_idtree()
id6
=
idtree_node
(
id4
,
id5
);
printf
(
"idtrees:
\n
"
);
printf
(
"
\n
id1: "
);
print_idtree
(
stdout
,
id1
);
printf
(
"
\n
id2: "
);
print_idtree
(
stdout
,
id2
);
printf
(
"
\n
id3: "
);
print_idtree
(
stdout
,
id3
);
printf
(
"
\n
id4: "
);
print_idtree
(
stdout
,
id4
);
printf
(
"
\n
id5: "
);
print_idtree
(
stdout
,
id5
);
printf
(
"
\n
id6: "
);
print_idtree
(
stdout
,
id6
);
printf
(
"
\n
id1: "
);
print_idtree
(
stdout
,
id1
);
printf
(
"
\n
id2: "
);
print_idtree
(
stdout
,
id2
);
printf
(
"
\n
id3: "
);
print_idtree
(
stdout
,
id3
);
printf
(
"
\n
id4: "
);
print_idtree
(
stdout
,
id4
);
printf
(
"
\n
id5: "
);
print_idtree
(
stdout
,
id5
);
printf
(
"
\n
id6: "
);
print_idtree
(
stdout
,
id6
);
printf
(
"
\n\n
"
);
}
...
...
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