Skip to content

Commit dba92ef

Browse files
committed
Improve test case for 100% coverage
1 parent 42a9554 commit dba92ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/MinimumSpanningTree/BaseMstTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ public function testSimpleGraph()
4949
$graph = new Graph();
5050
$v1 = $graph->createVertex(1);
5151
$v2 = $graph->createVertex(2);
52-
$v1->createEdge($v2)->setWeight(3);
52+
$v3 = $graph->createVertex(3);
53+
$v4 = $graph->createVertex(4);
54+
$v5 = $graph->createVertex(5);
55+
$v1->createEdge($v2)->setWeight(6);
56+
$v2->createEdge($v3)->setWeight(9);
57+
$v3->createEdge($v4)->setWeight(7);
58+
$v4->createEdge($v5)->setWeight(8);
5359

5460
$alg = $this->createAlg($v1);
5561

0 commit comments

Comments
 (0)