-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.c
41 lines (38 loc) · 1.57 KB
/
test.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenamar <abenamar@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/10 22:02:16 by abenamar #+# #+# */
/* Updated: 2023/01/16 23:55:36 by abenamar ### ########.fr */
/* */
/* ************************************************************************** */
#include "get_next_line_test.h"
void ft_assert(int index, int assertion)
{
if (assertion)
printf(BOLDGREEN "%d. OK\t", index);
else
printf(BOLDRED "%d. KO\t", index);
}
int main(void)
{
printf("\nProject: " BOLDMAGENTA "Get Next Line\n");
printf(RESET "\n-\nPart 1: " BOLDMAGENTA "Mandatory\n");
printf(BOLDCYAN "\nFile" RESET "\t\t\t" BOLDCYAN "Tests\n");
gnl_invalid_test();
gnl_empty_test();
gnl_simple_test();
gnl_multiple_test();
gnl_horizontal_test();
gnl_vertical_test();
#ifdef BONUS
printf("\n" RESET "\n-\nPart 2: " BOLDMAGENTA "Bonus" RESET "\n");
printf(BOLDCYAN "\nFile" RESET "\t\t\t" BOLDCYAN "Tests" RESET "\n");
gnl_bonus_test();
#endif
printf("\n" RESET "\n");
return (0);
}