[Aptitude-svn-commit] r4112 - in branches/aptitude-0.3/aptitude: . tests

Daniel Burrows dburrows at costa.debian.org
Sun Sep 18 04:32:40 UTC 2005


Author: dburrows
Date: Sun Sep 18 04:32:38 2005
New Revision: 4112

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/tests/test_dense_setset.cc
Log:
Fix the dense setset test for good.  Hopefully.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sun Sep 18 04:32:38 2005
@@ -1,6 +1,11 @@
 2005-09-17  Daniel Burrows  <dburrows at debian.org>
 
-	* tests/test_dense_setset.h:
+	* tests/test_dense_setset.cc:
+
+	  Fix the predicate search test: the id halver was declared to
+	  return bool, so it was actually only returning 0 or 1!
+
+	* tests/test_dense_setset.c:
 
 	  Add more tests of find_subset_containing.
 

Modified: branches/aptitude-0.3/aptitude/tests/test_dense_setset.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/tests/test_dense_setset.cc	(original)
+++ branches/aptitude-0.3/aptitude/tests/test_dense_setset.cc	Sun Sep 18 04:32:38 2005
@@ -141,7 +141,7 @@
   struct HalfExtractId
   {
   public:
-    bool operator()(int a) const
+    size_t operator()(int a) const
     {
       return a/2;
     }



More information about the Aptitude-svn-commit mailing list