src/test/unionfind_test.cc
changeset 842 a4bb28813570
parent 774 4297098d9677
child 906 17f31d280385
equal deleted inserted replaced
2:c928d85d327d 3:d3a7582073aa
   160   cout << "Size of the class of 3: " << U.size(3) << endl;
   160   cout << "Size of the class of 3: " << U.size(3) << endl;
   161   check(U.size(3) == 3,"Test failed.");
   161   check(U.size(3) == 3,"Test failed.");
   162   cout << "Size of the class of 2: " << U.size(2) << endl;
   162   cout << "Size of the class of 2: " << U.size(2) << endl;
   163   check(U.size(2) == 3,"Test failed.");
   163   check(U.size(2) == 3,"Test failed.");
   164 
   164 
   165   cout << "makeRep(4)..." << endl;
   165   cout << "Calling makeRep(4)..." << endl;
   166   U.makeRep(4);
   166   U.makeRep(4);
   167 //   print(U);
   167 //   print(U);
   168   cout << "makeRep(3)..." << endl;
   168   cout << "Calling makeRep(3)..." << endl;
   169   U.makeRep(3);
   169   U.makeRep(3);
   170 //   print(U);
   170 //   print(U);
   171   cout << "makeRep(2)..." << endl;
   171   cout << "Calling makeRep(2)..." << endl;
   172   U.makeRep(2);
   172   U.makeRep(2);
   173 //   print(U);
   173 //   print(U);
   174 
   174 
   175   cout << "Size of the class of 4: " << U.size(4) << endl;
   175   cout << "Size of the class of 4: " << U.size(4) << endl;
   176   check(U.size(4) == 3,"Test failed.");
   176   check(U.size(4) == 3,"Test failed.");