function test_val = test_hardconnectedcomponents1
  a = zeros(7);
  a(2:3,2:3) = 1;
  a(2,5:6) = 1;
  a(5:6,5:6) = 1;
  b = hardconnectedcomponents(a);
  c = zeros(7,'int32');
  c(2:3,2:3) = 1;
  c(2,5:6) = 2;
  c(5:6,5:6) = 3;
  test_val = issame(c,b);
