test/unionfind_test.cc
changeset 2108 f2c532541730
parent 1956 a055123339d5
child 2205 c20b0eb92a33
equal deleted inserted replaced
3:5d5d184d5d8b 4:431657e4ed9a
    95   U.erase(1);
    95   U.erase(1);
    96 
    96 
    97   check(U.size(4) == 2,"Test failed.");
    97   check(U.size(4) == 2,"Test failed.");
    98   check(U.size(2) == 2,"Test failed.");
    98   check(U.size(2) == 2,"Test failed.");
    99 
    99 
   100   U.erase(1);
       
   101   U.erase(6);
   100   U.erase(6);
   102   U.split(8);
   101   U.split(8);
   103 
   102 
   104   check(U.size(4) == 2,"Test failed.");
   103   check(U.size(4) == 2,"Test failed.");
   105   check(U.size(3) == 1,"Test failed.");
   104   check(U.size(3) == 1,"Test failed.");