Exemple #1
0
 def test_node_None(self):
     self.assertEqual(lca.dagLCA(None, 1, 3), None)
Exemple #2
0
 def test_node_same(self):
     self.assertEqual(lca.dagLCA(lca.root, lca.r6, lca.r6), 6)
Exemple #3
0
 def test_node1_3(self):
     self.assertEqual(lca.dagLCA(lca.root, lca.root.key, lca.r3.key).key, 1)
Exemple #4
0
 def test_node6_4(self):
     self.assertEqual(lca.dagLCA(lca.root, lca.r6, lca.r4), 4)
Exemple #5
0
 def test_node6_3(self):
     self.assertEqual(lca.dagLCA(lca.root, lca.r6, lca.r3), 1)
Exemple #6
0
 def test_node5_2(self):
     self.assertEqual(lca.dagLCA(lca.root, lca.r5, lca.r2), 1)
Exemple #7
0
 def test_node5_4(self):
     self.assertEqual(lca.dagLCA(lca.root, lca.r5, lca.r4), 3)
Exemple #8
0
 def test_node3_1(self):
     self.assertEqual(lca.dagLCA(lca.root, 3, 1).key, 1)