[Gmp-commit] /home/hgfiles/gmp: Don't test binomial(2k,k) twice.

mercurial at gmplib.org mercurial at gmplib.org
Wed Feb 24 18:16:56 CET 2010


details:   /home/hgfiles/gmp/rev/8cd3ff870a51
changeset: 13436:8cd3ff870a51
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed Feb 24 18:16:43 2010 +0100
description:
Don't test binomial(2k,k) twice.

diffstat:

 ChangeLog         |   4 ++++
 tests/mpz/t-bin.c |  10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r 022da605476f -r 8cd3ff870a51 ChangeLog
--- a/ChangeLog	Tue Feb 23 22:23:18 2010 +0100
+++ b/ChangeLog	Wed Feb 24 18:16:43 2010 +0100
@@ -1,3 +1,7 @@
+2010-02-24 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/mpz/t-bin.c (data): Replace (2k,k), tested by twos ().
+
 2010-02-23  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/generic/mod_1_3.c: Cast a switch index.
diff -r 022da605476f -r 8cd3ff870a51 tests/mpz/t-bin.c
--- a/tests/mpz/t-bin.c	Tue Feb 23 22:23:18 2010 +0100
+++ b/tests/mpz/t-bin.c	Wed Feb 24 18:16:43 2010 +0100
@@ -90,7 +90,6 @@
     {   "1", 123456, "0" },
 
     {   "2",  0, "1"   },
-    {   "2",  1, "2"   },
     {   "2",  2, "1"   },
     {   "2",  3, "0"   },
     {   "2",  4, "0"   },
@@ -106,7 +105,6 @@
 
     {   "4",  0, "1"   },
     {   "4",  1, "4"   },
-    {   "4",  2, "6"   },
     {   "4",  3, "4"   },
     {   "4",  4, "1"   },
     {   "4",  5, "0"   },
@@ -118,7 +116,6 @@
     {   "10",  2, "45"  },
     {   "10",  3, "120" },
     {   "10",  4, "210" },
-    {   "10",  5, "252" },
     {   "10",  6, "210" },
     {   "10",  7, "120" },
     {   "10",  8, "45"  },
@@ -151,8 +148,11 @@
     {   "-3",  5, "-21"  },
     {   "-3",  6,  "28"  },
 
-    {   "40", 20,  "137846528820" },
-    {   "60", 30,  "118264581564861424" },
+    /* A few random values */
+    {   "41", 20,  "269128937220" },
+    {   "62", 37,  "147405545359541742" },
+    {   "50", 18,  "18053528883775" },
+    {  "149", 21,  "19332950844468483467894649" },
   };
 
   mpz_t  n, want;


More information about the gmp-commit mailing list