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

Daniel Burrows dburrows at costa.debian.org
Tue Sep 6 18:31:34 UTC 2005


Author: dburrows
Date: Tue Sep  6 18:31:32 2005
New Revision: 4051

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/tests/test_wtree.cc
Log:
Explicitly test commutativity of intersection.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Sep  6 18:31:32 2005
@@ -1,5 +1,9 @@
 2005-09-06  Daniel Burrows  <dburrows at debian.org>
 
+	* tests/test_wtree.cc:
+
+	  Explicitly test commutativity of intersection.
+
 	* src/generic/immset.h, tests/test_wtree.cc:
 
 	  Fix a very dumb error when intersecting against an empty set.

Modified: branches/aptitude-0.3/aptitude/tests/test_wtree.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/tests/test_wtree.cc	(original)
+++ branches/aptitude-0.3/aptitude/tests/test_wtree.cc	Tue Sep  6 18:31:32 2005
@@ -567,43 +567,62 @@
 
     a.insert(1);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     a.insert(3);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     a.insert(5);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     a.insert(7);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
 
     b.insert(0);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.insert(2);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.insert(4);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.insert(6);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.insert(8);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.insert(5);
     assertIntersect(a, b);
+    assertIntersect(b, a);
     b.erase(6);
     assertIntersect(a, b);
+    assertIntersect(b, a);
     a.erase(1);
     assertIntersect(a, b);
+    assertIntersect(b, a);
     a.erase(3);
     assertIntersect(a, b);
+    assertIntersect(b, a);
     b.erase(8);
     assertIntersect(a, b);
+    assertIntersect(b, a);
     b.erase(0);
     assertIntersect(a, b);
+    assertIntersect(b, a);
     a.erase(5);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.erase(4);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.erase(5);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
     b.erase(2);
     assertNoIntersect(a, b);
+    assertNoIntersect(b, a);
   }
 
   void generalWTreeTest()



More information about the Aptitude-svn-commit mailing list