From 97ef5b6fc7edcb80699e12c8393c03b5fc9391df Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sun, 4 Feb 2024 20:15:34 +0100 Subject: [PATCH] stdio: add printf %N.Ms test where M > strlen(arg) --- .gitignore | 1 + src/stdio/printf.c | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index b24b5b2..9c0c463 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Build files /build-fx /build-cg +/build-cg-push /*.g1a /*.g3a diff --git a/src/stdio/printf.c b/src/stdio/printf.c index 6da25cb..ca21be8 100644 --- a/src/stdio/printf.c +++ b/src/stdio/printf.c @@ -191,6 +191,7 @@ static struct printf_test const usual_tests[] = { { "%p", PTR(0xa44b0000), "0xa44b0000" }, /* Characters and strings */ { "%s", STR("HellWrld!"), "HellWrld!" }, + { "[%-8.5s]", STR("He"), "[He ]" }, { "%-8.5s", STR("Hello, World!"), "Hello " }, { "%c", I32(100), "d" }, { "%6c", I32('#'), " #", },