aboutsummaryrefslogtreecommitdiff
path: root/tests/printf_tester_tests.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-14 09:20:43 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-14 10:29:56 +0100
commit2c0981859eee38323c04537b68fb138ef986095f (patch)
treeba92914acd26585b2a7d13fb8724340f704225ac /tests/printf_tester_tests.c
parentbbca9dc057781fee887a5110877b988c777e8eb0 (diff)
downloadft_printf_test-2c0981859eee38323c04537b68fb138ef986095f.tar.gz
ft_printf_test-2c0981859eee38323c04537b68fb138ef986095f.tar.bz2
ft_printf_test-2c0981859eee38323c04537b68fb138ef986095f.zip
Added memory leaks check
Diffstat (limited to 'tests/printf_tester_tests.c')
-rw-r--r--tests/printf_tester_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/printf_tester_tests.c b/tests/printf_tester_tests.c
index 48b9269..bd178e1 100644
--- a/tests/printf_tester_tests.c
+++ b/tests/printf_tester_tests.c
@@ -160,7 +160,7 @@ void test_printf_tester(void)
ASSERT_PRINTF("04 Test de chiffre sans h : %d, et %d\n", 432767, -432767);
/* ASSERT_PRINTF("%d\n", printf("03 This is a float : %f\n\n", 45.236)); */
/* ASSERT_PRINTF("%d\n", printf("02 This is a float : %.3f\n\n", 45.236)); */
- /* ASSERT_PRINTF("%d\n", printf("01 This is a float : %3f\n\n", 45.236)); */
+ /* ASSERT_PRINTF("%d\n", printf("01 This is a float : %3f\n\n", 45.236)); */
/* ASSERT_PRINTF("%d\n", printf("000 This is a float : %f\n\n", -45.236)); */
/* ASSERT_PRINTF("%d\n", printf("0 This is a float : %.3f\n\n", -45.236)); */
/* ASSERT_PRINTF("%d\n", printf("00 This is a float : %3f\n\n", -45.236)); */
@@ -216,7 +216,7 @@ void test_printf_tester(void)
ASSERT_PRINTF("%d\n", t);
ASSERT_PRINTF("%40s %n", "co", &t);
ASSERT_PRINTF("%d\n", t);
- /* ASSERT_PRINTF("%050 d%n", 500, &t); */
+ ASSERT_PRINTF("%050d%n", 500, &t);
ASSERT_PRINTF("%d\n", t);
/* ASSERT_PRINTF("%d\n\n", printf("1string 1 %s string 2 %s\n\n", "toto", "bonjour")); */
/* ASSERT_PRINTF("%d\n\n", printf("3string 1 % s string 2 % s\n\n", "toto", "bonjour")); */