-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy paths_test.cpp
40 lines (36 loc) · 1.01 KB
/
s_test.cpp
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
extern "C"
{
#define new tripouille
#include "ft_printf.h"
#undef new
}
#include "sigsegv.hpp"
#include "check.hpp"
#include "print.hpp"
# define TEST_LIMIT 10
int iTest = 1;
int testNumber;
char * testName;
bool showTest = false;
int main(int ac, char ** av)
{
char *s2 = "Mussum Ipsum, cacilds vidis litro abertis. Posuere libero varius. Nullam a nisl ut ante blandit hendrerit. Aenean sit amet nisi. Atirei o pau no gatis, per gatis num morreus.";
signal(SIGSEGV, sigsegv);
cout << FG_LYELLOW << "category: s" << RESET_ALL;
testName = av[0];
if (ac != 1)
printTestNumber(av[1], TEST_LIMIT);
cout << endl;
TEST(1, print("%s", ""));
TEST(2, print(" %s", ""));
TEST(3, print("%s ", ""));
TEST(4, print(" %s ", ""));
TEST(5, print(" %s ", "-"));
TEST(6, print(" %s %s ", "", "-"));
TEST(7, print(" %s %s ", " - ", ""));
TEST(8, print(" %s %s %s %s %s", " - ", "", "4", "", s2));
TEST(9, print(" %s %s %s %s %s ", " - ", "", "4", "", "2 "));
TEST(10, print(" NULL %s NULL ", NULL));
cout << ENDL;
return (0);
}