diff options
author | max99x <max99x@gmail.com> | 2011-06-28 09:32:11 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-06-28 09:32:11 +0300 |
commit | 0ea0b71b3464198288a27ad21072e32166fcc2de (patch) | |
tree | d0f180723bb7136eac5107d2b7d63759bfeabb22 /tests | |
parent | bef407f174543e926033a25ee1faf69e3bdad296 (diff) |
Proper handling of unknown specifiers in _formatString/printf; minor refactor.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/printf/output.txt | 3 | ||||
-rw-r--r-- | tests/printf/test.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/printf/output.txt b/tests/printf/output.txt index 3dd4d972..7ea7b01c 100644 --- a/tests/printf/output.txt +++ b/tests/printf/output.txt @@ -21,6 +21,9 @@ nan nan inf -inf +in%3.5valid +123 +456 0 0 0.0 diff --git a/tests/printf/test.c b/tests/printf/test.c index 552c7e1c..68779e51 100644 --- a/tests/printf/test.c +++ b/tests/printf/test.c @@ -26,6 +26,9 @@ int main() { printf("%-010.2f\n", NAN); printf("%10.f\n", INFINITY); printf("%-10.f\n", -INFINITY); + printf("in%3.5valid\n", 0); + printf("%qd\n", 123ll); + printf("%Id\n", 456); printf("%.f\n", 0.0f); printf("%.0f\n", 0.0f); printf("%.1f\n", 0.0f); |