summaryrefslogtreecommitdiff
path: root/tests/tsprintf.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-01-09 09:44:00 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-01-09 09:44:00 +0000
commitc8bd2da59b302eea6fd2cedb913fc119f6d87d8b (patch)
tree3a55a8b32680e234b4e000bf2d4646aad41c72b6 /tests/tsprintf.c
parentd3a1e6e02aa6dc79b5c45714b9fda99d1d71fafd (diff)
downloadmpfr-c8bd2da59b302eea6fd2cedb913fc119f6d87d8b.tar.gz
[tests/tsprintf.c] Also added tests with %Rf, %Rg and %#Rg on 0.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13655 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsprintf.c')
-rw-r--r--tests/tsprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c
index 3af2b9011..4309c2715 100644
--- a/tests/tsprintf.c
+++ b/tests/tsprintf.c
@@ -314,6 +314,9 @@ decimal (void)
check_sprintf (" 2e+07", "%30.0Rg", x);
check_sprintf (" 18993474.61279296875", "%30.19Rg", x);
check_sprintf (" 0.0000000000000000e+00", "%30Re", z);
+ check_sprintf (" 0.000000", "%30Rf", z);
+ check_sprintf (" 0", "%30Rg", z);
+ check_sprintf (" 0.00000", "%#30Rg", z);
check_sprintf (" 0e+00", "%30.0Re", z);
check_sprintf (" 0", "%30.0Rf", z);
check_sprintf (" 0.0000", "%30.4Rf", z);