[Lemon-commits] [lemon_svn] alpar: r1061 - hugo/branches/hugo++/src/test

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:43:01 CET 2006


Author: alpar
Date: Mon Aug 30 10:19:51 2004
New Revision: 1061

Modified:
   hugo/branches/hugo++/src/test/unionfind_test.cc

Log:
Much less output.

Modified: hugo/branches/hugo++/src/test/unionfind_test.cc
==============================================================================
--- hugo/branches/hugo++/src/test/unionfind_test.cc	(original)
+++ hugo/branches/hugo++/src/test/unionfind_test.cc	Mon Aug 30 10:19:51 2004
@@ -33,19 +33,19 @@
   UFE::MapType base;
   UFE U(base);
 
-  print(U);
+//   print(U);
 
   cout << "Insert 1..." << endl;
   U.insert(1);
-  print(U);
+//   print(U);
   
   cout << "Insert 2..." << endl;
   U.insert(2);
-  print(U);
+//   print(U);
   
   cout << "Join 1 and 2..." << endl;
   check(U.join(1,2),"Test failed.");
-  print(U);
+//   print(U);
 
   cout << "Insert 3, 4, 5, 6, 7..." << endl;
   U.insert(3);
@@ -53,17 +53,17 @@
   U.insert(5);
   U.insert(6);
   U.insert(7);
-  print (U);
+//   print (U);
 
   cout << "Join 1 - 4, 2 - 4 and 3 - 5 ..." << endl;
   check(U.join(1,4),"Test failed.");
   check(!U.join(2,4),"Test failed.");
   check(U.join(3,5),"Test failed.");
-  print(U);
+//   print(U);
 
   cout << "Insert 8 to the component of 5 ..." << endl;
   U.insert(8,5);
-  print(U);
+//   print(U);
 
   cout << "Size of the class of 4: " << U.size(4) << endl;
   check(U.size(4) == 3,"Test failed.");
@@ -76,22 +76,22 @@
 
   cout << "Insert 9 ..." << endl;
   U.insert(9);
-  print(U);
+//   print(U);
   cout << "Insert 10 to the component of 9 ..." << endl;
   U.insert(10,9);
-  print(U);
+//   print(U);
 
   cout << "Join 8 and 10..." << endl;
   check(U.join(8,10),"Test failed.");
-  print(U);
+//   print(U);
 
   cout << "Move 9 to the class of 4 ..." << endl;
   check(U.move(9,4),"Test failed.");
-  print(U);
+//   print(U);
 
   cout << "Move 9 to the class of 2 ..." << endl;
   check(!U.move(9,2),"Test failed.");
-  print(U);
+//   print(U);
 
   cout << "Size of the class of 4: " << U.size(4) << endl;
   check(U.size(4) == 4,"Test failed.");
@@ -100,7 +100,7 @@
   
   cout << "Move 5 to the class of 6 ..." << endl;
   check(U.move(5,6),"Test failed.");
-  print(U);
+//   print(U);
 
   cout << "Size of the class of 5: " << U.size(5) << endl;
   check(U.size(5) == 2,"Test failed.");
@@ -109,18 +109,18 @@
 
   cout << "Move 7 to the class of 10 ..." << endl;
   check(U.move(7,10),"Test failed.");
-  print(U);
+//   print(U);
 
   cout << "Size of the class of 7: " << U.size(7) << endl;
   check(U.size(7) == 4,"Test failed.");
 
   cout <<"Erase 9... " << endl;
   U.erase(9);
-  print(U);
+//   print(U);
 
   cout <<"Erase 1... " << endl;
   U.erase(1);
-  print(U);
+//   print(U);
 
   cout << "Size of the class of 4: " << U.size(4) << endl;
   check(U.size(4) == 2,"Test failed.");
@@ -130,15 +130,15 @@
 
   cout <<"Erase 1... " << endl;
   U.erase(1);
-  print(U);
+//   print(U);
 
   cout <<"Erase 6... " << endl;
   U.erase(6);
-  print(U);
+//   print(U);
 
   cout << "Split the class of 8... " << endl;
   U.split(8);
-  print(U);
+//   print(U);
 
 
   cout << "Size of the class of 4: " << U.size(4) << endl;
@@ -152,7 +152,7 @@
   cout << "Join 3 - 4 and 2 - 4 ..." << endl;
   check(U.join(3,4),"Test failed.");
   check(!U.join(2,4),"Test failed.");
-  print(U);
+//   print(U);
 
 
   cout << "Size of the class of 4: " << U.size(4) << endl;
@@ -164,13 +164,13 @@
 
   cout << "makeRep(4)..." << endl;
   U.makeRep(4);
-  print(U);
+//   print(U);
   cout << "makeRep(3)..." << endl;
   U.makeRep(3);
-  print(U);
+//   print(U);
   cout << "makeRep(2)..." << endl;
   U.makeRep(2);
-  print(U);
+//   print(U);
 
   cout << "Size of the class of 4: " << U.size(4) << endl;
   check(U.size(4) == 3,"Test failed.");
@@ -182,11 +182,11 @@
 
   cout << "eraseClass 4 ..." << endl;
   U.eraseClass(4);
-  print(U);
+//   print(U);
 
   cout << "eraseClass 7 ..." << endl;
   U.eraseClass(7);
-  print(U);
+//   print(U);
 
-  cout << "done" << endl;
+  cout << "done." << endl;
 }



More information about the Lemon-commits mailing list