diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-05-17 09:29:19 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-05-17 09:29:19 +0000 |
commit | 27f7e397929973378246ee02f1bf3a7d2d9765dd (patch) | |
tree | 1138235d56392c8db614e9ee0a170c07c3557cd4 | |
parent | e1d5e4ea2b57799d90fa61175f1c5e4c33e85e16 (diff) | |
download | mpfr-27f7e397929973378246ee02f1bf3a7d2d9765dd.tar.gz |
[tests/tsprintf.c] Similarly to r14514, added tests of native integer 0
with precision field 0 (also yields a call to buffer_cat with len = 0).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14520 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tsprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c index 8cf76c11f..abb7bc56e 100644 --- a/tests/tsprintf.c +++ b/tests/tsprintf.c @@ -191,6 +191,10 @@ native_types (void) sprintf (buf, "%d", i); check_vsprintf (buf, "%d", i); + check_vsprintf ("0", "%d", 0); + check_vsprintf ("", "%.d", 0); + check_vsprintf ("", "%.0d", 0); + sprintf (buf, "%e", d); check_vsprintf (buf, "%e", d); |