[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Mon Oct 26 15:27:40 UTC 2015


details:   /var/hg/gmp/rev/5b460c101e2c
changeset: 16903:5b460c101e2c
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Oct 26 16:17:43 2015 +0100
description:
tests/cxx/t-ops.cc: Test also comparison in ZxQ, ZxF, QxF.

details:   /var/hg/gmp/rev/e946eadb6dc3
changeset: 16904:e946eadb6dc3
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Oct 26 16:27:35 2015 +0100
description:
ChangeLog

diffstat:

 ChangeLog          |   7 +++++++
 tests/cxx/t-ops.cc |  21 +++++++++++++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)

diffs (52 lines):

diff -r 5baa51df576d -r e946eadb6dc3 ChangeLog
--- a/ChangeLog	Mon Oct 26 07:45:50 2015 +0100
+++ b/ChangeLog	Mon Oct 26 16:27:35 2015 +0100
@@ -1,3 +1,10 @@
+2015-10-26 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* configfsf.guess: Updated to version 2015-10-21, for a typo.
+
+	* tests/cxx/t-ops.cc (check_mpq): Compare also with mpz.
+	(check_mpf): Compare also with mpz and mpq.
+
 2015-10-25  Torbjörn Granlund  <torbjorng at google.com>
 
 	* configure.ac: Avoid passing ambiguous -march=skylake.
diff -r 5baa51df576d -r e946eadb6dc3 tests/cxx/t-ops.cc
--- a/tests/cxx/t-ops.cc	Mon Oct 26 07:45:50 2015 +0100
+++ b/tests/cxx/t-ops.cc	Mon Oct 26 16:27:35 2015 +0100
@@ -541,6 +541,13 @@
     c = cmp(a, b); ASSERT_ALWAYS(c > 0);
     c = cmp(b, a); ASSERT_ALWAYS(c < 0);
   }
+  {
+    mpq_class a(123);
+    mpz_class b(45);
+    int c;
+    c = cmp(a, b); ASSERT_ALWAYS(c > 0);
+    c = cmp(b, a); ASSERT_ALWAYS(c < 0);
+  }
 }
 
 void
@@ -706,6 +713,20 @@
     c = cmp(a, b); ASSERT_ALWAYS(c > 0);
     c = cmp(b, a); ASSERT_ALWAYS(c < 0);
   }
+  {
+    mpf_class a(123);
+    mpz_class b(45);
+    int c;
+    c = cmp(a, b); ASSERT_ALWAYS(c > 0);
+    c = cmp(b, a); ASSERT_ALWAYS(c < 0);
+  }
+  {
+    mpf_class a(123);
+    mpq_class b(45);
+    int c;
+    c = cmp(a, b); ASSERT_ALWAYS(c > 0);
+    c = cmp(b, a); ASSERT_ALWAYS(c < 0);
+  }
 }
 
 


More information about the gmp-commit mailing list