-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
149 lines (145 loc) · 2.85 KB
/
main.c
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vmonteco <vmonteco@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/17 04:22:52 by vmonteco #+# #+# */
/* Updated: 2015/12/07 18:26:01 by vmonteco ### ########.fr */
/* */
/* ************************************************************************** */
#include "test.h"
#define DEP
#define TEST_ATOI
#define TEST_ABSOLUTE
#define TEST_BZERO
#define TEST_ISALNUM
#define TEST_ISALPHA
#define TEST_ISASCII
#define TEST_ISDIGIT
#define TEST_ISLOWER
#define TEST_ISPRINT
#define TEST_ISUPPER
#define TEST_ITOA
#define TEST_LSTNEW
#define TEST_LSTADD
#define TEST_LSTDELONE
#define TEST_LSTDEL
#define TEST_LSTMAP
#define TEST_MEMALLOC
#define TEST_MEMDEL
#define TEST_MEMCPY
#define TEST_MEMCCPY
#define TEST_MEMCHR
#define TEST_MEMCMP
int main(void)
{
#ifdef TEST_ATOI
# ifdef DEP
# endif
test_atoi();
#endif
#ifdef TEST_ABSOLUTE
# ifdef DEP
# endif
test_absolute();
#endif
#ifdef TEST_BZERO
# ifdef DEP
# endif
test_bzero();
#endif
#ifdef TEST_ISALNUM
# ifdef DEP
# endif
test_isalnum();
#endif
#ifdef TEST_ISALPHA
# ifdef DEP
# endif
test_isalpha();
#endif
#ifdef TEST_ISASCII
# ifdef DEP
# endif
test_isascii();
#endif
#ifdef TEST_ISDIGIT
# ifdef DEP
# endif
test_isdigit();
#endif
#ifdef TEST_ISLOWER
# ifdef DEP
# endif
test_islower();
#endif
#ifdef TEST_ISPRINT
# ifdef DEP
# endif
test_isprint();
#endif
#ifdef TEST_ISUPPER
# ifdef DEP
# endif
test_isupper();
#endif
#ifdef TEST_ITOA
# ifdef DEP
# endif
test_itoa();
#endif
#ifdef TEST_LSTNEW
# ifdef DEP
# endif
test_lstnew();
#endif
#ifdef TEST_LSTADD
# ifdef DEP
printf("/!\\ ft_lstadd() requires ft_lstnew(). /!\\\n");
# endif
test_lstadd();
#endif
#ifdef TEST_LSTDELONE
# ifdef DEP
# endif
test_lstdelone();
#endif
#ifdef TEST_LSTDEL
# ifdef DEP
printf("/!\\ ft_lstdel() requires ft_lstdelone. /!\\\n");
# endif
test_lstdel();
#endif
#ifdef TEST_LSTMAP
# ifdef DEP
printf("/!\\ ft_lstmap() requires ft_memalloc(). /!\\\n");
# endif
test_lstmap();
#endif
#ifdef TEST_LSTITER
# ifdef DEP
# endif
test_lstmap();
#endif
#ifdef TEST_MEMALLOC
test_memalloc();
#endif
#ifdef TEST_MEMDEL
test_memdel();
#endif
#ifdef TEST_MEMCPY
test_memcpy();
#endif
#ifdef TEST_MEMCCPY
test_memccpy();
#endif
#ifdef TEST_MEMCHR
test_memchr();
#endif
#ifdef TEST_MEMCMP
test_memcmp();
#endif
return (0);
}