stdio: add printf %N.Ms test where M > strlen(arg)

This commit is contained in:
Lephenixnoir 2024-02-04 20:15:34 +01:00
parent ba626bf366
commit 97ef5b6fc7
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# Build files
/build-fx
/build-cg
/build-cg-push
/*.g1a
/*.g3a

View File

@ -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('#'), " #", },