summaryrefslogtreecommitdiff
path: root/tests/tout_str.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-03-29 14:18:14 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-03-29 14:18:14 +0000
commite12c83c709669d851d70036998b02064e6612446 (patch)
tree8bda46d8c08eeb4a2c42525a4e400f9993e32061 /tests/tout_str.c
parent00acea395285f1c0e879481f9911d8900628d4dd (diff)
downloadmpfr-e12c83c709669d851d70036998b02064e6612446.tar.gz
[tests/tout_str.c] improve coverage (I don't know how to avoid printing to
stdout, but since "make check" no longer shows the test outputs, this should be fine). However I don't know how to do the same for mpfr_inp_str... git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12516 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tout_str.c')
-rw-r--r--tests/tout_str.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tout_str.c b/tests/tout_str.c
index 711bb622f..43dd2a140 100644
--- a/tests/tout_str.c
+++ b/tests/tout_str.c
@@ -58,6 +58,10 @@ special (void)
exit (1);
}
+ /* check stream = NULL */
+ n = mpfr_out_str (NULL, 10, 0, x, MPFR_RNDN);
+ putchar ('\n');
+
mpfr_set_inf (x, 1);
n = mpfr_out_str (fout, 10, 0, x, MPFR_RNDN);
if (n != 5)