summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-08-04 14:05:09 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-08-04 14:05:09 +0000
commit7da56181323a6581c0de457c5687356645cfd8a7 (patch)
tree8ff123859efd540e8cf9d5297089ff15a74c8495 /tests
parentfe101ee12cae6807490003bfd79da1745aaf0165 (diff)
downloadmpfr-7da56181323a6581c0de457c5687356645cfd8a7.tar.gz
[tests/tget_sj.c] Added tests of 1 and -1.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7046 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tget_sj.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tget_sj.c b/tests/tget_sj.c
index 78bf1b0c7..69c709c71 100644
--- a/tests/tget_sj.c
+++ b/tests/tget_sj.c
@@ -244,6 +244,13 @@ main (void)
check_sj (0, x);
check_uj (0, x);
+ mpfr_set_ui (x, 1, MPFR_RNDN);
+ check_sj (1, x);
+ check_uj (1, x);
+
+ mpfr_neg (x, x, MPFR_RNDN);
+ check_sj (-1, x);
+
mpfr_set_si_2exp (x, 1, prec, MPFR_RNDN);
mpfr_sub_ui (x, x, 1, MPFR_RNDN); /* UINTMAX_MAX */