diff options
| author | Soufiane El melcaoui <sel-melc@e-r3-p2.s19.be> | 2019-11-16 08:06:03 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-06 18:42:25 +0100 |
| commit | 9a4afcd954ed9c79284267d195941136cfaf5720 (patch) | |
| tree | ee2e3b7c6cceebcfc7fb3cdd2f67a4f44170abc3 /tests/printf_tester_tests.c | |
| parent | bbca9dc057781fee887a5110877b988c777e8eb0 (diff) | |
| download | ft_printf_test-9a4afcd954ed9c79284267d195941136cfaf5720.tar.gz ft_printf_test-9a4afcd954ed9c79284267d195941136cfaf5720.tar.bz2 ft_printf_test-9a4afcd954ed9c79284267d195941136cfaf5720.zip | |
[PATCH 1/4] initial commit
Signed-off-by: Charles <sircharlesaze@gmail.com>
Diffstat (limited to 'tests/printf_tester_tests.c')
| -rw-r--r-- | tests/printf_tester_tests.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/printf_tester_tests.c b/tests/printf_tester_tests.c index 48b9269..b68d779 100644 --- a/tests/printf_tester_tests.c +++ b/tests/printf_tester_tests.c @@ -6,7 +6,7 @@ void test_printf_tester(void) int t = 50; char c = 'a'; - ASSERT_PRINTF("p0 % .3s\n", "cccc"); +// ASSERT_PRINTF("p0 % .3s\n", "cccc"); ASSERT_PRINTF("pp %.50d\n", 10000); ASSERT_PRINTF("p1 %.4s\n", "cccc"); ASSERT_PRINTF("p2 %.10s\n", "cccc"); @@ -106,8 +106,8 @@ void test_printf_tester(void) /* ASSERT_PRINTF("%d\n", printf("1chiffre 1 %d chiffre 2 %d\n", 42, -42)); */ /* ASSERT_PRINTF("%d\n", printf("2chiffre 1 % d chiffre 2 % d\n", 42, -42)); */ /* ASSERT_PRINTF("%d\n\n", printf("4chiffre 1 %-12d chiffre 2 %-12d\n\n", 42, -42)); */ - ASSERT_PRINTF("% i\n", -60); - ASSERT_PRINTF("% i\n", -60); +/* ASSERT_PRINTF("% i\n", -60); + ASSERT_PRINTF("% i\n", -60);*/ ASSERT_PRINTF("%1p\n", &t); ASSERT_PRINTF("%1p\n", &t); ASSERT_PRINTF("t1 %050d\n", 10); @@ -129,7 +129,7 @@ void test_printf_tester(void) /* ASSERT_PRINTF("%d\n\n", printf("15chiffre 1 %.d chiffre 2 %.d\n\n", 42, -42)); */ /* ASSERT_PRINTF("%d\n\n", printf("4caractere 1 %12c caractere 2 %12c\n\n", 'a', 'c')); */ ASSERT_PRINTF("1caractere 1 %c caractere 2 %c\n\n", 'a', 'c'); - ASSERT_PRINTF("3caractere 1 % c caractere 2 % c\n\n", 'a', 'c'); +// ASSERT_PRINTF("3caractere 1 % c caractere 2 % c\n\n", 'a', 'c'); /* ASSERT_PRINTF("%d\n\n", printf("1hexa-maj 1 %X hexa-maj 2 %X\n\n", 42, -42)); */ /* ASSERT_PRINTF("%d\n\n", printf("3hexa-maj 1 % X hexa-maj 2 % X\n\n", 42, -42)); */ /* ASSERT_PRINTF("%d\n\n", printf("4hexa-maj 1 %12X hexa-maj 2 %int12X\n\n", 42, -42)); */ @@ -200,11 +200,11 @@ void test_printf_tester(void) ASSERT_PRINTF("percent 2 %12%"); ASSERT_PRINTF("percent 3 %-12%"); ASSERT_PRINTF("percent 4 %0%"); - ASSERT_PRINTF("percent 5 % %"); - ASSERT_PRINTF("percent 6 % 15%"); - ASSERT_PRINTF("percent 7 % 12%"); - ASSERT_PRINTF("percent 8 % *%", 13); - ASSERT_PRINTF("%n", &t); +// ASSERT_PRINTF("percent 5 % %"); +// ASSERT_PRINTF("percent 6 % 15%"); +// ASSERT_PRINTF("percent 7 % 12%"); +// ASSERT_PRINTF("percent 8 % *%", 13); +// ASSERT_PRINTF("%n", &t); ASSERT_PRINTF("%d\n", t); ASSERT_PRINTF("%n", NULL); ASSERT_PRINTF("%d\n", t); @@ -212,7 +212,7 @@ void test_printf_tester(void) ASSERT_PRINTF("%d\n", t); ASSERT_PRINTF("%s %n", "hello world", &t); ASSERT_PRINTF("%d\n", t); - ASSERT_PRINTF("% .1s %n", "hey", &t); +// ASSERT_PRINTF("% .1s %n", "hey", &t); ASSERT_PRINTF("%d\n", t); ASSERT_PRINTF("%40s %n", "co", &t); ASSERT_PRINTF("%d\n", t); |
