Skip to content

Commit 25da9ad

Browse files
author
Hardik dadhich
committed
fixing spaces
1 parent c117e19 commit 25da9ad

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

tests/test_count_connected_components.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1+
#import modules
12
import unittest
23
from algorithms.graph import count_connected_number_of_component
34

45
class TestConnectedComponentInGraph(unittest.TestCase):
5-
""" Class """
6+
""" Class to performs unit tests """
67

78
def test_count_connected_components(self):
89
"""
910
Test Function that test the different cases of count connected components
1011
11-
0----------2 1--------5 3
12-
|
13-
|
14-
4
15-
16-
output = 3
12+
0----------2 1--------5 3
13+
|
14+
|
15+
4
16+
17+
output = 3
1718
1819
"""
1920
expected_result = 3
21+
22+
# adjacency list representation of graph
2023
l = [[2],
2124
[5],
2225
[0,4],

0 commit comments

Comments
 (0)