aboutsummaryrefslogtreecommitdiff
path: root/tests/printf_tester_tests.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-28 15:37:18 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-28 15:37:18 +0100
commit13db5da424586484604cb3e86d0b11d860b68bdf (patch)
tree8976df67ba5dc2b7730a97d209564b9413190d7e /tests/printf_tester_tests.c
parent042cdb5704ee654161390f45d51d821b957b9d99 (diff)
downloadft_printf_test-13db5da424586484604cb3e86d0b11d860b68bdf.tar.gz
ft_printf_test-13db5da424586484604cb3e86d0b11d860b68bdf.tar.bz2
ft_printf_test-13db5da424586484604cb3e86d0b11d860b68bdf.zip
Removed some %n from the regular tests
Diffstat (limited to 'tests/printf_tester_tests.c')
-rw-r--r--tests/printf_tester_tests.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/printf_tester_tests.c b/tests/printf_tester_tests.c
index 3415fc5..81eb60d 100644
--- a/tests/printf_tester_tests.c
+++ b/tests/printf_tester_tests.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/06 18:15:31 by cacharle #+# #+# */
-/* Updated: 2020/02/06 19:02:48 by cacharle ### ########.fr */
+/* Updated: 2020/02/28 15:36:08 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -224,21 +224,21 @@ void test_printf_tester(void)
ASSERT_PRINTF("percent 7 % 12%");
ASSERT_PRINTF("percent 8 % *%", 13);
ASSERT_PRINTF("%n", &t);
+ ASSERT_PRINTF("test %n", &t);
+ ASSERT_PRINTF("%s %n", "hello world", &t);
#endif
ASSERT_PRINTF("%d\n", t);
// ASSERT_PRINTF("%n", NULL);
ASSERT_PRINTF("%d\n", t);
- ASSERT_PRINTF("test %n", &t);
ASSERT_PRINTF("%d\n", t);
- ASSERT_PRINTF("%s %n", "hello world", &t);
ASSERT_PRINTF("%d\n", t);
#ifdef FT_PRINTF_TEST_BONUS
// ASSERT_PRINTF("% .1s %n", "hey", &t);
+ ASSERT_PRINTF("%40s %n", "co", &t);
+ ASSERT_PRINTF("%050d%n", 500, &t);
#endif
ASSERT_PRINTF("%d\n", t);
- ASSERT_PRINTF("%40s %n", "co", &t);
ASSERT_PRINTF("%d\n", 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")); */