-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.c
More file actions
36 lines (32 loc) · 730 Bytes
/
test.c
File metadata and controls
36 lines (32 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <stdio.h>
#include "linked_list_test.h"
#include "stack_test.h"
#include "queue_test.h"
#include "kmp_test.h"
int main(void)
{
/* testing list */
if (TestList()) {
printf("list test successfully\n");
} else {
printf("list test failed\n");
}
/* testing stack */
if (TestStack()) {
printf("stack test successfully\n");
} else {
printf("stack test failed\n");
}
/* testing queue */
if (TestQueue()) {
printf("queue test successfully\n");
} else {
printf("queue test failed\n");
}
/* testing kmp */
if (TestKMP()) {
printf("kmp test successfully\n");
} else {
printf("kmp test failed\n");
}
}