From a723d77399dc4c6ba1741174c45fe9c4dab8b9b2 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Tue, 22 Aug 2023 14:40:37 +0300 Subject: [PATCH] adjusted tests --- tests/char_print.c | 3 +-- tests/puts.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 tests/puts.c diff --git a/tests/char_print.c b/tests/char_print.c index cf7875d..7c8d011 100644 --- a/tests/char_print.c +++ b/tests/char_print.c @@ -10,7 +10,6 @@ int main(void) { char c = 97; - _printf("%c%c\n", c, c); - _printf("cat: %c\n", c); + _printf("cat: %css", c); return (0); } diff --git a/tests/puts.c b/tests/puts.c new file mode 100644 index 0000000..fa57b26 --- /dev/null +++ b/tests/puts.c @@ -0,0 +1,12 @@ +#include "../main.h" +/** + * main - puts works? + */ +int main(void) +{ + char *str; + + str = "hello\n"; + _puts(str); + return (0); +}