Пример #1
0
 def test_is_connected_04(self):
     h = UF_HWQUPC(10)
     self.assertFalse(h.is_connected(0, 1))
Пример #2
0
 def test_connect_02(self):
     h = UF_HWQUPC(2)
     h.connect(0, 1)
     h.connect(0, 1)
     self.assertTrue(h.is_connected(0, 1))
Пример #3
0
 def test_is_connected_03(self):
     h = UF_HWQUPC(2)
     self.assertIsNone(h.update_parent(0, 1))
     self.assertTrue(h.is_connected(0, 1))